]> wagnertech.de Git - timetracker.git/blobdiff - quotas.php
Refactoring. Renamed team_id fields to become group_id.
[timetracker.git] / quotas.php
index c921fba4ccad3748af38bd12298b488e6c3d9160..8e6f59c4d54514314ed95b4c01aa9ce683c33c5f 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->team_id, array('name'=>$user->team,'workday_minutes'=>$workday_minutes)))
+      if (!ttTeamHelper::update($user->group_id, array('name'=>$user->team,'workday_minutes'=>$workday_minutes)))
         $err->add($i18n->get('error.db'));
     }