From c51ac80bc7cbb4b2f77b75cd4120b62675aa7014 Mon Sep 17 00:00:00 2001 From: anuko Date: Sat, 6 May 2017 17:46:53 +0000 Subject: [PATCH] Implemented task required option. --- WEB-INF/lib/ttTeamHelper.class.php | 3 ++- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/profile_edit.tpl | 17 ++++++++++++++++- mobile/time.php | 3 +++ mobile/time_edit.php | 3 +++ profile_edit.php | 8 +++++--- time.php | 3 +++ time_edit.php | 3 +++ 8 files changed, 36 insertions(+), 6 deletions(-) diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 3dba92af..2f0c7ccd 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -764,6 +764,7 @@ class ttTeamHelper { $time_format_part = ''; $week_start_part = ''; $tracking_mode_part = ''; + $task_required_part = ' , task_required = '.$mdb2->quote($fields['task_required']); $record_type_part = ''; $uncompleted_indicators_part = ''; $plugins_part = ''; @@ -785,7 +786,7 @@ class ttTeamHelper { if (isset($fields['workday_hours'])) $workday_hours_part = ', workday_hours = '.$mdb2->quote($fields['workday_hours']); $sql = "update tt_teams set $name_part $addr_part $currency_part $lang_part $decimal_mark_part - $date_format_part $time_format_part $week_start_part $tracking_mode_part $record_type_part + $date_format_part $time_format_part $week_start_part $tracking_mode_part $task_required_part $record_type_part $uncompleted_indicators_part $plugins_part $lock_spec_part $workday_hours_part where id = $team_id"; $affected = $mdb2->exec($sql); if (is_a($affected, 'PEAR_Error')) return false; diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index fa18d98e..d4ff45b8 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.10.42.3628 | Copyright © Anuko | +  Anuko Time Tracker 1.11.43.3629 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/profile_edit.tpl b/WEB-INF/templates/profile_edit.tpl index 8c9cb8d5..aea6773e 100644 --- a/WEB-INF/templates/profile_edit.tpl +++ b/WEB-INF/templates/profile_edit.tpl @@ -1,4 +1,19 @@