X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/2df50105b46a5cbd6493271b137a136ccfe2ea5a..d537315bdd0072e25558ba006bfbfba13a84b8d2:/mobile/users.php diff --git a/mobile/users.php b/mobile/users.php index b531d7a4..874b0763 100644 --- a/mobile/users.php +++ b/mobile/users.php @@ -38,6 +38,8 @@ if (!(ttAccessAllowed('view_users') || ttAccessAllowed('manage_users'))) { } // End of access checks. +$uncompleted_indicators = $user->getConfigOption('uncompleted_indicators'); + // Get users. $active_users = ttTeamHelper::getActiveUsers(array('getAllFields'=>true)); if($user->can('manage_users')) { @@ -45,12 +47,12 @@ if($user->can('manage_users')) { $inactive_users = ttTeamHelper::getInactiveUsers($user->group_id, true); } -// Check if the team 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('active_users', $active_users);