Some more renaming.
authoranuko <support@anuko.com>
Sun, 23 Oct 2016 16:02:16 +0000 (16:02 +0000)
committeranuko <support@anuko.com>
Sun, 23 Oct 2016 16:02:16 +0000 (16:02 +0000)
WEB-INF/lib/ttUser.class.php
WEB-INF/templates/mobile/users.tpl
WEB-INF/templates/users.tpl
mobile/users.php
profile_edit.php
users.php

index 51e844b..3f26962 100644 (file)
@@ -43,7 +43,7 @@ class ttUser {
   var $week_start = 0;          // Week start day.
   var $tracking_mode = 0;       // Tracking mode.
   var $record_type = 0;         // Record type (duration vs start and finish, or both).
-  var $uncompleted_entries = 0; // Uncompleted entries (show nowhere or on users page).
+  var $uncompleted_indicators = 0; // Uncompleted time entry indicators (show nowhere or on users page).
   var $currency = null;         // Currency.
   var $plugins = null;          // Comma-separated list of enabled plugins.
   var $team = null;             // Team name.
@@ -93,7 +93,7 @@ class ttUser {
       $this->week_start = $val['week_start'];
       $this->tracking_mode = $val['tracking_mode'];
       $this->record_type = $val['record_type'];
-      $this->uncompleted_entries = $val['uncompleted_indicators'];
+      $this->uncompleted_indicators = $val['uncompleted_indicators'];
       $this->team = $val['team_name'];
       $this->address = $val['address'];
       $this->currency = $val['currency'];
index e43f0f6..202e018 100644 (file)
@@ -19,7 +19,7 @@
     {foreach $active_users as $u}
         <tr bgcolor="{cycle values="#f5f5f5,#dedee5"}">
           <td>
-            {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_entries}
+            {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_indicators}
               <span class="uncompleted-entry{if $u.has_uncompleted_entry} active{/if}"{if $u.has_uncompleted_entry} title="{$i18n.form.users.uncompleted_entry}"{/if}></span>
             {/if}
             {if $user->isManager()}
index 84e3d0e..99d617b 100644 (file)
@@ -21,7 +21,7 @@
     {foreach $active_users as $u}
         <tr bgcolor="{cycle values="#f5f5f5,#dedee5"}">
           <td>
-          {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_entries}
+          {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_indicators}
             <span class="uncompleted-entry{if $u.has_uncompleted_entry} active{/if}"{if $u.has_uncompleted_entry} title="{$i18n.form.users.uncompleted_entry}"{/if}></span>
           {/if}
             {$u.name|escape:'html'}
index 0023154..d565fc6 100644 (file)
@@ -45,7 +45,7 @@ if($user->canManageTeam()) {
 }
 
 // Check if the team is set to show indicators for uncompleted time entries.
-if (UNCOMPLETED_INDICATORS == $user->uncompleted_entries) {
+if (UNCOMPLETED_INDICATORS == $user->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']);
index 09e9110..546d634 100644 (file)
@@ -87,7 +87,7 @@ if ($request->isPost()) {
     $cl_start_week = $user->week_start;
     $cl_tracking_mode = $user->tracking_mode;
     $cl_record_type = $user->record_type;
-    $cl_uncompleted_entries = $user->uncompleted_entries;
+    $cl_uncompleted_entries = $user->uncompleted_indicators;
 
     // Which plugins do we have enabled?
     $plugins = explode(',', $user->plugins);
index ce29132..da57040 100644 (file)
--- a/users.php
+++ b/users.php
@@ -45,7 +45,7 @@ if($user->canManageTeam()) {
 }
 
 // Check if the team is set to show indicators for uncompleted time entries.
-if (UNCOMPLETED_INDICATORS == $user->uncompleted_entries) {
+if (UNCOMPLETED_INDICATORS == $user->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']);