]> wagnertech.de Git - timetracker.git/blobdiff - timesheet_add.php
Added client_id to timesheet insert.
[timetracker.git] / timesheet_add.php
index fa32ca7ff59035ead3cfc593a7061ae4acd41027..fa8ec4f89ccefef0c45efbb331990ed7f4db54bc 100644 (file)
@@ -64,7 +64,7 @@ if ($request->isPost()) {
     $user_id = $bean->getDetachedAttribute('timesheet_user_id');
     if (!ttTimesheetHelper::getTimesheetByName($cl_name, $user_id)) {
       if (ttTimesheetHelper::insert(array('user_id' => $user_id,
-        // 'client_id' => ?
+        'client_id' => $bean->getAttribute('client'),
         'name' => $cl_name,
         'comment' => $cl_comment))) {
           header('Location: timesheets.php');