X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fuser_add.php;h=ab6f5e2da799a842d955b2d346bafcce1b006c1a;hb=77dc69032fb4b318c4fb92c3fe54e0e1b03dae4e;hp=93411452832ce917e30969daf1999b9b64bd1f73;hpb=45c855269d952873285f7a835e82fc2b3eff3971;p=timetracker.git diff --git a/mobile/user_add.php b/mobile/user_add.php index 93411452..ab6f5e2d 100644 --- a/mobile/user_add.php +++ b/mobile/user_add.php @@ -29,6 +29,7 @@ require_once('../initialize.php'); import('form.Form'); import('ttTeamHelper'); +import('ttGroupHelper'); import('ttUserHelper'); import('form.Table'); import('form.TableColumn'); @@ -41,11 +42,11 @@ if (!ttAccessAllowed('manage_users')) { // End of access checks. // Use the "limit" plugin if we have one. Ignore include errors. -// The "limit" plugin is not required for normal operation of the Time Tracker. -@include('plugins/limit/user_add.php'); +// The "limit" plugin is not required for normal operation of Time Tracker. +@include('../plugins/limit/user_add.php'); if ($user->isPluginEnabled('cl')) - $clients = ttTeamHelper::getActiveClients($user->group_id); + $clients = ttGroupHelper::getActiveClients(); $assigned_projects = array(); if ($request->isPost()) { @@ -89,7 +90,7 @@ if ($user->isPluginEnabled('cl')) $form->addInput(array('type'=>'floatfield','maxlength'=>'10','name'=>'rate','format'=>'.2','value'=>$cl_rate)); -$projects = ttTeamHelper::getActiveProjects($user->group_id); +$projects = ttGroupHelper::getActiveProjects(); // Define classes for the projects table. class NameCellRenderer extends DefaultCellRenderer {