X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/7d4e0805bf2f55c97c750021ebdd0ff0a1b44b0b..80481c14be5a7ac9e4d386ad7b3ec71d7628e03b:/time.php diff --git a/time.php b/time.php index ce622b23..a428b9a2 100644 --- a/time.php +++ b/time.php @@ -89,7 +89,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($group_id); + $custom_fields = new CustomFields(); $smarty->assign('custom_fields', $custom_fields); } @@ -170,7 +170,7 @@ if ($user->can('track_time')) { // Dropdown for clients in MODE_TIME. Use all active clients. if (MODE_TIME == $user->getTrackingMode() && $user->isPluginEnabled('cl')) { - $active_clients = ttTeamHelper::getActiveClients($group_id, true); + $active_clients = ttGroupHelper::getActiveClients(true); $form->addInput(array('type'=>'combobox', 'onchange'=>'fillProjectDropdown(this.value);', 'name'=>'client', @@ -196,7 +196,7 @@ if (MODE_PROJECTS == $user->getTrackingMode() || MODE_PROJECTS_AND_TASKS == $use // Dropdown for clients if the clients plugin is enabled. if ($user->isPluginEnabled('cl')) { - $active_clients = ttTeamHelper::getActiveClients($group_id, true); + $active_clients = ttGroupHelper::getActiveClients(true); // We need an array of assigned project ids to do some trimming. foreach($project_list as $project) $projects_assigned_to_user[] = $project['id'];