]> wagnertech.de Git - timetracker.git/blobdiff - quotas.php
Fixed visibility of the Required checkbox on group settings.
[timetracker.git] / quotas.php
index a453099e99cc7e94275fb84da92a302f9318a2bb..ac6542f5e90dbd99b0e1d436efa468471b6275ca 100644 (file)
@@ -90,7 +90,7 @@ if ($request->isPost()){
     // Handle workday hours.
     $workday_minutes = ttTimeHelper::postedDurationToMinutes($request->getParameter('workdayHours'));
     if ($workday_minutes != $user->workday_minutes) {
-      if (!ttTeamHelper::update($user->group_id, array('name'=>$user->group,'workday_minutes'=>$workday_minutes)))
+      if (!$user->updateGroup(array('workday_minutes'=>$workday_minutes)))
         $err->add($i18n->get('error.db'));
     }