From: anuko Date: Sun, 23 Oct 2016 16:02:16 +0000 (+0000) Subject: Some more renaming. X-Git-Tag: timetracker_1.19-1~1620 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=845622e615e142555436c61425dfcef7c51e14a2;p=timetracker.git Some more renaming. --- diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index 51e844b9..3f26962c 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -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']; diff --git a/WEB-INF/templates/mobile/users.tpl b/WEB-INF/templates/mobile/users.tpl index e43f0f67..202e018e 100644 --- a/WEB-INF/templates/mobile/users.tpl +++ b/WEB-INF/templates/mobile/users.tpl @@ -19,7 +19,7 @@ {foreach $active_users as $u} - {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_entries} + {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_indicators} {/if} {if $user->isManager()} diff --git a/WEB-INF/templates/users.tpl b/WEB-INF/templates/users.tpl index 84e3d0e5..99d617bd 100644 --- a/WEB-INF/templates/users.tpl +++ b/WEB-INF/templates/users.tpl @@ -21,7 +21,7 @@ {foreach $active_users as $u} - {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_entries} + {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_indicators} {/if} {$u.name|escape:'html'} diff --git a/mobile/users.php b/mobile/users.php index 00231540..d565fc64 100644 --- a/mobile/users.php +++ b/mobile/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']); diff --git a/profile_edit.php b/profile_edit.php index 09e91107..546d634c 100644 --- a/profile_edit.php +++ b/profile_edit.php @@ -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); diff --git a/users.php b/users.php index ce291327..da570401 100644 --- 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']);