X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fuser_add.php;h=9d2b539e0d882dca4b8d19db815df2c5a06305cc;hb=85d475278111ea1ed81fcd0dd5eef7140d1cd493;hp=53b9842fabd31693a6f6c70186fede0ef9e9d346;hpb=11bfec0ff88b649a934556e8b4812d65715c7509;p=timetracker.git diff --git a/mobile/user_add.php b/mobile/user_add.php index 53b9842f..9d2b539e 100644 --- a/mobile/user_add.php +++ b/mobile/user_add.php @@ -42,10 +42,10 @@ if (!ttAccessAllowed('manage_users')) { // 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'); +@include('../plugins/limit/user_add.php'); if ($user->isPluginEnabled('cl')) - $clients = ttTeamHelper::getActiveClients($user->team_id); + $clients = ttTeamHelper::getActiveClients($user->group_id); $assigned_projects = array(); if ($request->isPost()) { @@ -89,7 +89,7 @@ if ($user->isPluginEnabled('cl')) $form->addInput(array('type'=>'floatfield','maxlength'=>'10','name'=>'rate','format'=>'.2','value'=>$cl_rate)); -$projects = ttTeamHelper::getActiveProjects($user->team_id); +$projects = ttTeamHelper::getActiveProjects($user->group_id); // Define classes for the projects table. class NameCellRenderer extends DefaultCellRenderer { @@ -147,7 +147,7 @@ if ($request->isPost()) { 'login' => $cl_login, 'password' => $cl_password1, 'rate' => $cl_rate, - 'team_id' => $user->team_id, + 'group_id' => $user->group_id, 'role_id' => $cl_role_id, 'client_id' => $cl_client_id, 'projects' => $assigned_projects,