From 6bc0d3ba39163ae1b64f20fb3fc63b689e4d5227 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 15 Jul 2019 14:21:46 -0600 Subject: [PATCH] Update extension_edit.php --- app/extensions/extension_edit.php | 60 +++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 830adb5a18..f5dc18ca0a 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -1258,7 +1258,35 @@ echo " ".$text['label-emergency_caller_id_name']."\n"; echo "\n"; echo "\n"; - echo " \n"; + if (permission_exists('outbound_caller_id_select')) { + if (count($destinations) > 0) { + echo " \n"; + echo "
\n"; + echo $text['description-outbound_caller_id_name-select']."\n"; + } + else { + echo " \n"; + } + } + else { + echo " \n"; + } echo "
\n"; echo $text['description-emergency_caller_id_name']."\n"; echo "\n"; @@ -1271,7 +1299,35 @@ echo " ".$text['label-emergency_caller_id_number']."\n"; echo "\n"; echo "\n"; - echo " \n"; + if (permission_exists('outbound_caller_id_select')) { + if (count($destinations) > 0) { + echo " \n"; + echo "
\n"; + echo $text['description-outbound_caller_id_name-select']."\n"; + } + else { + echo " \n"; + } + } + else { + echo " \n"; + } echo "
\n"; echo $text['description-emergency_caller_id_number']."\n"; echo "\n";