projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Localized top manager role name in list of active users.
[timetracker.git]
/
WEB-INF
/
lib
/
ttTeamHelper.class.php
diff --git
a/WEB-INF/lib/ttTeamHelper.class.php
b/WEB-INF/lib/ttTeamHelper.class.php
index
1cf0d27
..
4e39628
100644
(file)
--- a/
WEB-INF/lib/ttTeamHelper.class.php
+++ b/
WEB-INF/lib/ttTeamHelper.class.php
@@
-71,6
+71,7
@@
class ttTeamHelper {
// The getActiveUsers obtains all active users in a given team.
static function getActiveUsers($options = null) {
global $user;
// The getActiveUsers obtains all active users in a given team.
static function getActiveUsers($options = null) {
global $user;
+ global $i18n;
$mdb2 = getConnection();
if (isset($options['getAllFields']))
$mdb2 = getConnection();
if (isset($options['getAllFields']))
@@
-82,6
+83,9
@@
class ttTeamHelper {
if (is_a($res, 'PEAR_Error'))
return false;
while ($val = $res->fetchRow()) {
if (is_a($res, 'PEAR_Error'))
return false;
while ($val = $res->fetchRow()) {
+ // Localize top manager role name, as it is not localized in db.
+ if ($val['rank'] == 512)
+ $val['role_name'] = $i18n->getKey('role.top_manager.label');
$user_list[] = $val;
}
$user_list[] = $val;
}