]> wagnertech.de Git - timetracker.git/blobdiff - mobile/user_edit.php
Finished refactoring of the FormElement class.
[timetracker.git] / mobile / user_edit.php
index 4f3b9aaa08b24a00bc66e902842cf0d70987cc1c..06cfdf95e57cdbbb03665013a5d5bef8c186ec84 100644 (file)
@@ -137,13 +137,13 @@ class RateCellRenderer extends DefaultCellRenderer {
     global $assigned_projects;
     $field = new FloatField('rate_'.$table->getValueAtName($row,'id'));
     $field->setFormName($table->getFormName());
-    $field->setLocalization($GLOBALS['I18N']);
+    $field->localize($GLOBALS['I18N']);
     $field->setSize(5);
     $field->setFormat('.2');
     foreach ($assigned_projects as $p) {
       if ($p['id'] == $table->getValueAtName($row,'id')) $field->setValue($p['rate']);
     }
-    $this->setValue($field->toStringControl());
+    $this->setValue($field->getHtml());
     return $this->toString();
   }
 }