From d671f4b46e58c90df9b13b9346fd3bc0a8e66254 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 2 Feb 2018 21:53:01 +0000 Subject: [PATCH] Fixed problem with saving plugin config. --- WEB-INF/lib/ttTeamHelper.class.php | 7 ++++--- WEB-INF/templates/footer.tpl | 2 +- week_view.php | 2 -- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index d607ca1b..868e67f3 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -1044,10 +1044,11 @@ class ttTeamHelper { $plugins = implode(',', $plugin_array); if ($plugins != $user->plugins) { - return ttTeamHelper::update($user->team_id, array( - 'name' => $user->team, - 'plugins' => $plugins)); + if (!ttTeamHelper::update($user->team_id, array('name' => $user->team,'plugins' => $plugins))) + return false; + $user->plugins = $plugins; } + return true; } } diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 4022e582..16bf70f6 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.10.3865 | Copyright © Anuko | +  Anuko Time Tracker 1.17.10.3866 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/week_view.php b/week_view.php index 8ca350f0..2c538d9c 100644 --- a/week_view.php +++ b/week_view.php @@ -27,10 +27,8 @@ // +----------------------------------------------------------------------+ require_once('initialize.php'); -require_once('plugins/MonthlyQuota.class.php'); import('form.Form'); import('ttTeamHelper'); -import('ttTimeHelper'); // Access check. if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('wv')) { -- 2.20.1