A bit more refactoring for subgroups.
[timetracker.git] / mobile / user_add.php
index 20c2b1f..ab6f5e2 100644 (file)
@@ -42,7 +42,7 @@ 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.
+// The "limit" plugin is not required for normal operation of Time Tracker.
 @include('../plugins/limit/user_add.php');
 
 if ($user->isPluginEnabled('cl'))
@@ -90,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 {