]> wagnertech.de Git - timetracker.git/blobdiff - user_edit.php
Finished refactoring of the FormElement class.
[timetracker.git] / user_edit.php
index 8f71e55f8fc1bf3a12867dc76bbab1d7978c67a1..5fd3b7ec3868e20ebe2a36a898d60624703f9fe4 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();
   }
 }