X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/7797eda9fb04c217a813db88e00bb9ee541eabbb..d537315bdd0072e25558ba006bfbfba13a84b8d2:/users.php?ds=sidebyside diff --git a/users.php b/users.php index fe0e92da..47ec0145 100644 --- a/users.php +++ b/users.php @@ -50,6 +50,7 @@ if ($request->isPost()) { } else { $group_id = $user->getGroup(); } +$uncompleted_indicators = $user->getConfigOption('uncompleted_indicators'); $form = new Form('usersForm'); if ($user->can('manage_subgroups')) { @@ -79,12 +80,12 @@ if($user->can('manage_users')) { $inactive_users = $user->getUsers($options); } -// Check if the group is set to show indicators for uncompleted time entries. -if ($user->uncompleted_indicators) { +if ($uncompleted_indicators) { // Check each active user if they have an uncompleted time entry. foreach ($active_users as $key => $user) { $active_users[$key]['has_uncompleted_entry'] = (bool) ttTimeHelper::getUncompleted($user['id']); } + $smarty->assign('uncompleted_indicators', true); } $smarty->assign('forms', array($form->getName()=>$form->toArray()));