From ab8ab5f330177e3c04ff9090a7136ae04f87789e 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 84a1253d40..b9de816aba 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -1843,6 +1843,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 dc9fcd0531..d5cdcc6e3b 100644 --- a/addressbook/templates/default/index.xet +++ b/addressbook/templates/default/index.xet @@ -142,7 +142,7 @@ - +