X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/45a82f93d80cf124930d1535d4dc7dd15c63e5de..aa8ffdcec75ded579362d1274e985b4b35a9ac95:/quotas.php diff --git a/quotas.php b/quotas.php index 8381c3b6..1f376190 100644 --- a/quotas.php +++ b/quotas.php @@ -88,7 +88,7 @@ if ($request->isPost()){ // Handle workday hours. $workday_minutes = ttTimeHelper::postedDurationToMinutes($request->getParameter('workdayHours')); - if ($workday_minutes != $user->workday_minutes) { + if ($workday_minutes != $user->getWorkdayMinutes()) { if (!$user->updateGroup(array('workday_minutes'=>$workday_minutes))) $err->add($i18n->get('error.db')); } @@ -111,7 +111,7 @@ if ($request->isPost()){ // Get monthly quotas for the entire year. $monthsData = $quota->get($selectedYear); -$workdayHours = ttTimeHelper::toAbsDuration($user->workday_minutes, true); +$workdayHours = ttTimeHelper::toAbsDuration($user->getWorkdayMinutes(), true); $form = new Form('monthlyQuotasForm'); $form->addInput(array('type'=>'text', 'name'=>'workdayHours', 'value'=>$workdayHours, 'style'=>'width:60px'));