]> wagnertech.de Git - timetracker.git/commitdiff
Fixed a persistence problem for week view plugin options.
authorNik Okuntseff <support@anuko.com>
Sat, 3 Feb 2018 17:56:59 +0000 (17:56 +0000)
committerNik Okuntseff <support@anuko.com>
Sat, 3 Feb 2018 17:56:59 +0000 (17:56 +0000)
WEB-INF/templates/footer.tpl
profile_edit.php

index 8799451c0ca766e7f032bc3036e21cc07401a970..5a86537a9270d509a643df8b32625d286b93a6da 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.11.3872 | 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.12.3873 | 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 1d12bae483f5ce5e7b97f3f9671b02879f445fdf..5839c7e0f2c1bebafc57e3fa266d93b9f41226f4 100644 (file)
@@ -266,6 +266,16 @@ if ($request->isPost()) {
         $plugins .= ',mq';
       if ($cl_week_view)
         $plugins .= ',wv';
+
+      // Recycle week view plugin options as they are not configured on this page.
+      $existing_plugins = explode(',', $user->plugins);
+      if (in_array('wvn', $existing_plugins))
+        $plugins .= ',wvn';
+      if (in_array('wvl', $existing_plugins))
+        $plugins .= ',wvl';
+      if (in_array('wvns', $existing_plugins))
+        $plugins .= ',wvns';
+
       $plugins = trim($plugins, ',');
 
       $update_result = ttTeamHelper::update($user->team_id, array(