From 361e20e6deb0fd4df76052ecbb60d9dbb1957ee2 Mon Sep 17 00:00:00 2001 From: reliberate Date: Fri, 14 Aug 2015 20:32:56 -0600 Subject: [PATCH] Destinations (Class): Enable preferred number formatting for Destination options. --- resources/classes/destinations.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/classes/destinations.php b/resources/classes/destinations.php index 1354e60c71..ec81998200 100644 --- a/resources/classes/destinations.php +++ b/resources/classes/destinations.php @@ -190,7 +190,9 @@ class destinations { if (count($row['result']['data']) > 0 and strlen($row['select_value'][$destination_type]) > 0) { $response .= " \n"; + $label2 = $label; foreach ($row['result']['data'] as $data) { + $did = ($label2 == 'destinations') ? true : false; $select_value = $row['select_value'][$destination_type]; $select_label = $row['select_label']; foreach ($row['field'] as $key => $value) { @@ -217,6 +219,7 @@ class destinations { $select_label = str_replace("\${domain_name}", $_SESSION['domain_name'], $select_label); $select_label = str_replace("\${context}", $_SESSION['context'], $select_label); if ($select_value == $destination_value) { $selected = "selected='selected' "; $select_found = true; } else { $selected = ''; } + if ($did) { $select_label = format_phone(trim($select_label)); } $response .= " \n"; } $response .= " \n";