Fixed problem with saving plugin config.
authorNik Okuntseff <support@anuko.com>
Fri, 2 Feb 2018 21:53:01 +0000 (21:53 +0000)
committerNik Okuntseff <support@anuko.com>
Fri, 2 Feb 2018 21:53:01 +0000 (21:53 +0000)
WEB-INF/lib/ttTeamHelper.class.php
WEB-INF/templates/footer.tpl
week_view.php

index d607ca1..868e67f 100644 (file)
@@ -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;
   }
 }
index 4022e58..16bf70f 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.17.10.3865 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.17.10.3866 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 8ca350f..2c538d9 100644 (file)
 // +----------------------------------------------------------------------+
 
 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')) {