X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/36e4e3e4b457c992317212738d10693c269a4f6e..60d2288b7fca6caf0f5d9d3eee972f040eb24fb0:/user_edit.php diff --git a/user_edit.php b/user_edit.php index ac1143f3..5fd3b7ec 100644 --- a/user_edit.php +++ b/user_edit.php @@ -128,7 +128,7 @@ $form->addInput(array('type'=>'floatfield','maxlength'=>'10','name'=>'rate','for class NameCellRenderer extends DefaultCellRenderer { function render(&$table, $value, $row, $column, $selected = false) { $this->setOptions(array('width'=>200,'valign'=>'top')); - $this->setValue(''); + $this->setValue(''); return $this->toString(); } } @@ -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(); } }