]> wagnertech.de Git - timetracker.git/blobdiff - profile_edit.php
A bit more cleanup in translations.
[timetracker.git] / profile_edit.php
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(