Refactoring. Renamed team_id fields to become group_id.
[timetracker.git] / tasks.php
index 5505e6d..e967e09 100644 (file)
--- a/tasks.php
+++ b/tasks.php
@@ -39,9 +39,10 @@ if (MODE_PROJECTS_AND_TASKS != $user->tracking_mode) {
   header('Location: feature_disabled.php');
   exit();
 }
+// End of access checks.
 
-$smarty->assign('active_tasks', ttTeamHelper::getActiveTasks($user->team_id));
-$smarty->assign('inactive_tasks', ttTeamHelper::getInactiveTasks($user->team_id));
+$smarty->assign('active_tasks', ttTeamHelper::getActiveTasks($user->group_id));
+$smarty->assign('inactive_tasks', ttTeamHelper::getInactiveTasks($user->group_id));
 $smarty->assign('title', $i18n->get('title.tasks'));
 $smarty->assign('content_page_name', 'tasks.tpl');
 $smarty->display('index.tpl');