X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=f7b1c12e7477e837c1d68ec9e63943728da6018c;hb=163beaf9eb740a868fc08e0d8361ac72c932185c;hp=5a9b5210d98906e063a57a1e79578cc378e410c7;hpb=903dae76e54a4e0c081532a8113c00ef1b56a1b5;p=timetracker.git diff --git a/time.php b/time.php index 5a9b5210..f7b1c12e 100644 --- a/time.php +++ b/time.php @@ -56,7 +56,7 @@ if ($request->isPost()) { } // End of access checks. -// Determine user for which we display this page. +// Determine user for whom we display this page. if ($request->isPost() && $userChanged) { $user_id = $request->getParameter('user'); $user->setOnBehalfUser($user_id); @@ -131,9 +131,9 @@ $form = new Form('timeRecordForm'); if ($user->can('track_time')) { $rank = $user->getMaxRankForGroup($group_id); if ($user->can('track_own_time')) - $options = array('group_id'=>$group_id,'status'=>ACTIVE,'max_rank'=>$rank,'include_self'=>true,'self_first'=>true); + $options = array('status'=>ACTIVE,'max_rank'=>$rank,'include_self'=>true,'self_first'=>true); else - $options = array('group_id'=>$group_id,'status'=>ACTIVE,'max_rank'=>$rank); + $options = array('status'=>ACTIVE,'max_rank'=>$rank); $user_list = $user->getUsers($options); if (count($user_list) >= 1) { $form->addInput(array('type'=>'combobox', @@ -347,7 +347,7 @@ if ($request->isPost()) { } elseif ($request->getParameter('btn_stop')) { // Stop button pressed to finish an uncompleted record. $record_id = $request->getParameter('record_id'); - $record = ttTimeHelper::getRecord($record_id, $user_id); + $record = ttTimeHelper::getRecord($record_id); $browser_date = $request->getParameter('browser_date'); $browser_time = $request->getParameter('browser_time');