From b8bc2a45fc50050461a3d322a16cf61497764703 Mon Sep 17 00:00:00 2001 From: anuko Date: Sun, 7 May 2017 12:36:41 +0000 Subject: [PATCH] Fixed the problem with broken Now buttons when task entry is not required. --- WEB-INF/lib/ttUser.class.php | 4 ++-- WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index 7edcbde4..44c48629 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -42,7 +42,7 @@ class ttUser { var $time_format = null; // Time format. var $week_start = 0; // Week start day. var $tracking_mode = 0; // Tracking mode. - var $task_required = null; // Whether task selection is required on time entires. + var $task_required = 0; // Whether task selection is required on time entires. var $record_type = 0; // Record type (duration vs start and finish, or both). var $uncompleted_indicators = 0; // Uncompleted time entry indicators (show nowhere or on users page). var $currency = null; // Currency. @@ -93,7 +93,7 @@ class ttUser { $this->time_format = $val['time_format']; $this->week_start = $val['week_start']; $this->tracking_mode = $val['tracking_mode']; - $this->task_required = $val['task_required']; + $this->task_required = intval($val['task_required']); $this->record_type = $val['record_type']; $this->uncompleted_indicators = $val['uncompleted_indicators']; $this->team = $val['team_name']; diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index c2784da2..5e41dbcd 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.11.43.3632 | Copyright © Anuko | +  Anuko Time Tracker 1.11.44.3633 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1