X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/b0adefe1eed972a27be939b6c66aec6c3c6b2f18..ce2bb98acb1f5e2a846f95b798a4af409c842ebb:/quotas.php diff --git a/quotas.php b/quotas.php index a453099e..ac6542f5 100644 --- a/quotas.php +++ b/quotas.php @@ -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')); }