X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/1a9924b363fec9c044f8198ccad589ab8f5f112c..7845326d2e9638f9cf4f57b06bcd6cac5ff5758f:/week.php diff --git a/week.php b/week.php index c6c194f3..f7f42f7c 100644 --- a/week.php +++ b/week.php @@ -116,18 +116,11 @@ $dayTotals = ttTimeHelper::getDayTotals($dataArray, $dayHeaders); // TODO: refactoring ongoing down from here. - - - - - - // Actually this is work in progress at this point, even documenting the array, as we still miss control IDs, and // editing entries is not yet implemented. When this is done, we will have to re-document the above. // TODO: -// 1) escape cf_1 values in record identifiers as this may come from user for text fields. -// 2) make sure we have IDs for cells, which are now missing. +// 1) make sure we have IDs for cells, which are now missing. // Define rendering class for a label field to the left of durations. class LabelCellRenderer extends DefaultCellRenderer { @@ -141,7 +134,7 @@ class LabelCellRenderer extends DefaultCellRenderer { // Define rendering class for a single cell for time entry in week view table. class TimeCellRenderer extends DefaultCellRenderer { function render(&$table, $value, $row, $column, $selected = false) { - $field_name = $table->getValueAtName($row,$column)['id']; // Our text field names (and ids) are like x_y (row_column). + $field_name = $table->getValueAt($row,$column)['id']; // Our text field names (and ids) are like x_y (row_column). $field = new TextField($field_name); $field->setFormName($table->getFormName()); $field->setSize(2);