From 8e930ac814c5ac5946d0a6c1124c61d7e2883cd1 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sun, 17 Feb 2019 22:13:38 +0000 Subject: [PATCH] Added client_id to timesheet insert. --- WEB-INF/templates/footer.tpl | 2 +- timesheet_add.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.20.1