X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=time.php;h=a428b9a2b31d2af039725e60396b33d33122ac3c;hb=aeb30899d6ec142220d83b34fd8f6c68c05e8e90;hp=ce622b233fdb01cdded9285a6c3ad640fe867651;hpb=7d4e0805bf2f55c97c750021ebdd0ff0a1b44b0b;p=timetracker.git 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'];