From abc73dab2bb6b1dd04bf23ce2a832cba6a06fc5a Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 14 Aug 2017 11:22:46 -0600 Subject: [PATCH] * Addressbook - Fix tel_prefer statustext to be translated field label instead of field name --- addressbook/inc/class.addressbook_ui.inc.php | 5 +++++ addressbook/templates/default/index.xet | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 1d2af78abc..f40df8df5c 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -1740,6 +1740,11 @@ window.egw_LAB.wait(function() { { $row['tel_prefered'] = $row[$row['tel_prefer']].$prefer_marker; } + // Show nice name as status text + if($row['tel_prefer']) + { + $row['tel_prefer_label'] = $this->contact_fields[$row['tel_prefer']]; + } if (!$row['owner'] && $row['account_id'] > 0) { $row['class'] .= 'rowAccount rowNoDelete '; diff --git a/addressbook/templates/default/index.xet b/addressbook/templates/default/index.xet index ca3b4067c7..7c84a3a175 100644 --- a/addressbook/templates/default/index.xet +++ b/addressbook/templates/default/index.xet @@ -142,7 +142,7 @@ - +