]> wagnertech.de Git - timetracker.git/blobdiff - reports.php
Refactoring. Renamed team_id fields to become group_id.
[timetracker.git] / reports.php
index 59f3c0f928e31dabf9d1430715fe256a58152055..99683c1ab924f9a7c053f32799791424bb01142e 100644 (file)
@@ -45,7 +45,7 @@ if (!(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports'))) {
 // Use custom fields plugin if it is enabled.
 if ($user->isPluginEnabled('cf')) {
   require_once('plugins/CustomFields.class.php');
-  $custom_fields = new CustomFields($user->team_id);
+  $custom_fields = new CustomFields($user->group_id);
   $smarty->assign('custom_fields', $custom_fields);
 }
 
@@ -104,7 +104,7 @@ $form->addInput(array('type'=>'combobox',
   'datakeys'=>array('id','name'),
   'empty'=>array(''=>$i18n->get('dropdown.all'))));
 if (MODE_PROJECTS_AND_TASKS == $user->tracking_mode) {
-  $task_list = ttTeamHelper::getActiveTasks($user->team_id);
+  $task_list = ttTeamHelper::getActiveTasks($user->group_id);
   $form->addInput(array('type'=>'combobox',
     'name'=>'task',
     'style'=>'width: 250px;',
@@ -144,12 +144,11 @@ $user_list = array();
 if ($user->can('view_reports') || $user->isClient()) {
   // Prepare user and assigned projects arrays.
   if ($user->can('view_reports')) {
-    // $users = ttTeamHelper::getUsers(); // Active and inactive users for managers.
     if ($user->can('view_own_reports'))
       $options = array('max_rank'=>$user->rank-1,'include_self'=>true);
     else
       $options = array('max_rank'=>$user->rank-1);
-    $users = $user->getUsers($options); // Active and inactive users for managers.
+    $users = $user->getUsers($options); // Active and inactive users.
   }
   elseif ($user->isClient())
     $users = ttTeamHelper::getUsersForClient(); // Active and inactive users for clients.