X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/1bebedf4f6025a06d5c738a82ef057d2d0200eac..b14cf15f563feabc7015e3af99ea8cb7a1903dc1:/mobile/timer.php diff --git a/mobile/timer.php b/mobile/timer.php index bf92a89e..c754740a 100644 --- a/mobile/timer.php +++ b/mobile/timer.php @@ -29,7 +29,6 @@ require_once('../initialize.php'); import('form.Form'); import('ttUserHelper'); -import('ttTeamHelper'); import('ttGroupHelper'); import('ttClientHelper'); import('ttTimeHelper'); @@ -54,7 +53,7 @@ $_SESSION['date'] = $cl_date; // Use custom fields plugin if it is enabled. if ($user->isPluginEnabled('cf')) { require_once('../plugins/CustomFields.class.php'); - $custom_fields = new CustomFields($user->group_id); + $custom_fields = new CustomFields(); $smarty->assign('custom_fields', $custom_fields); } @@ -145,7 +144,7 @@ if (MODE_PROJECTS == $user->tracking_mode || MODE_PROJECTS_AND_TASKS == $user->t } if (MODE_PROJECTS_AND_TASKS == $user->tracking_mode) { - $task_list = ttTeamHelper::getActiveTasks($user->group_id); + $task_list = ttGroupHelper::getActiveTasks(); $form->addInput(array('type'=>'combobox', 'name'=>'task', 'style'=>'width: 250px;', @@ -284,7 +283,7 @@ if ($request->isPost()) { } } // isPost -$week_total = ttTimeHelper::getTimeForWeek($user->getUser(), $cl_date); +$week_total = ttTimeHelper::getTimeForWeek($cl_date); $smarty->assign('week_total', $week_total); $smarty->assign('uncompleted', $uncompleted); @@ -292,7 +291,7 @@ $smarty->assign('uncompleted', $uncompleted); $smarty->assign('time_records', ttTimeHelper::getRecords($user->getUser(), $cl_date)); -$smarty->assign('day_total', ttTimeHelper::getTimeForDay($user->getUser(), $cl_date)); +$smarty->assign('day_total', ttTimeHelper::getTimeForDay($cl_date)); $smarty->assign('client_list', $client_list); $smarty->assign('project_list', $project_list); $smarty->assign('task_list', $task_list);