]> wagnertech.de Git - timetracker.git/blobdiff - timesheet_edit.php
A bit more progress with timesheets.
[timetracker.git] / timesheet_edit.php
index e98d824f314f156eb9156d84ead7d8ff0d994c6d..50d2a44d44c7fb615b8b5e43feb6e567303a16e9 100644 (file)
@@ -72,7 +72,7 @@ if ($request->isPost()) {
 
   if ($err->no()) {
     if ($request->getParameter('btn_save')) {
 
   if ($err->no()) {
     if ($request->getParameter('btn_save')) {
-      $existing_timesheet = ttTimesheetHelper::getTimesheetByName($cl_name);
+      $existing_timesheet = ttTimesheetHelper::getTimesheetByName($cl_name, $timesheet['user_id']);
       if (!$existing_timesheet || ($cl_timesheet_id == $existing_timesheet['id'])) {
          // Update project information.
          if (ttTimesheetHelper::update(array(
       if (!$existing_timesheet || ($cl_timesheet_id == $existing_timesheet['id'])) {
          // Update project information.
          if (ttTimesheetHelper::update(array(