From d1981a77cc4a19f3155f2c2ba1bcc884e1250a0e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 26 Aug 2020 22:05:11 -0600 Subject: [PATCH] Add optional new optional columns destination_trunk_prefix and destination_area_code. --- app/destinations/destinations.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index 3e2b5b50d3..fb67cd79d9 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -226,6 +226,12 @@ } echo th_order_by('destination_type', $text['label-destination_type'], $order_by, $order, $param, "class='shrink'"); echo th_order_by('destination_prefix', $text['label-destination_prefix'], $order_by, $order, $param, "class='shrink'"); + if (permission_exists('destination_trunk_prefix')) { + echo th_order_by('destination_trunk_prefix', '', $order_by, $order, $param, "class='shrink'"); + } + if (permission_exists('destination_area_code')) { + echo th_order_by('destination_area_code', '', $order_by, $order, $param, "class='shrink'"); + } echo th_order_by('destination_number', $text['label-destination_number'], $order_by, $order, $param, "class='shrink'"); if (!$_GET['show'] == "all") { echo "". $text['label-detail_action'].""; @@ -267,7 +273,14 @@ echo " ".escape($domain)."\n"; } echo " ".escape($row['destination_type'])." \n"; + echo " ".escape($row['destination_prefix'])." \n"; + if (permission_exists('destination_trunk_prefix')) { + echo " ".escape($row['destination_trunk_prefix'])." \n"; + } + if (permission_exists('destination_area_code')) { + echo " ".escape($row['destination_area_code'])." \n"; + } echo " \n"; if (permission_exists('destination_edit')) {