]> wagnertech.de Git - timetracker.git/blobdiff - users.php
Removed group selector from users.php page to keep things simple.
[timetracker.git] / users.php
index b7a6606ca5a61df2b808a6a88002ed00c604840a..d19ba7de6f46a105b439fa1776c5cc41c6e667ff 100644 (file)
--- a/users.php
+++ b/users.php
@@ -51,12 +51,13 @@ 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) {
+$uncompleted_indicators = $user->getConfigOption('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);