X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/179facbe37379829ddffc9ee2e29ca6c3d969ce8..49814b0298d01a1e9efd2add26ea31cb79530f5a:/timesheet_edit.php diff --git a/timesheet_edit.php b/timesheet_edit.php index d275ce5f..7919125a 100644 --- a/timesheet_edit.php +++ b/timesheet_edit.php @@ -53,7 +53,7 @@ if ($request->isPost()) { $cl_status = $request->getParameter('status'); } else { $cl_name = $timesheet['name']; - $cl_comment = $timesheet['submitter_comment']; + $cl_comment = $timesheet['comment']; $cl_status = $timesheet['status']; } @@ -73,13 +73,13 @@ if ($request->isPost()) { if ($request->getParameter('btn_save')) { if ($err->no()) { - $existing_timesheet = ttTimesheetHelper::getTimesheetByName($cl_name, $timesheet['user_id']); + $existing_timesheet = ttTimesheetHelper::getTimesheetByName($cl_name); if (!$existing_timesheet || ($cl_timesheet_id == $existing_timesheet['id'])) { // Update timesheet information. if (ttTimesheetHelper::update(array( 'id' => $cl_timesheet_id, 'name' => $cl_name, - 'submitter_comment' => $cl_comment, + 'comment' => $cl_comment, 'status' => $cl_status))) { header('Location: timesheets.php'); exit();