From: Nik Okuntseff Date: Sun, 17 Feb 2019 22:13:38 +0000 (+0000) Subject: Added client_id to timesheet insert. X-Git-Tag: timetracker_1.19-1~319 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8e930ac814c5ac5946d0a6c1124c61d7e2883cd1;p=timetracker.git Added client_id to timesheet insert. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 8b988eaf..8e33a487 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.37.4733 | Copyright © Anuko | +  Anuko Time Tracker 1.18.37.4734 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/timesheet_add.php b/timesheet_add.php index fa32ca7f..fa8ec4f8 100644 --- a/timesheet_add.php +++ b/timesheet_add.php @@ -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');