From 26b0988075419b2fc0a9daff3c71af8ff73a76de Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 22 Mar 2023 09:53:28 -0600 Subject: [PATCH] destination_country_code is required --- app/destinations/destination_edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 40f03cffd9..b4ac666583 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -174,6 +174,7 @@ //check for all required data $msg = ''; if (strlen($destination_type) == 0) { $msg .= $text['message-required']." ".$text['label-destination_type']."
\n"; } + if (strlen($destination_country_code) == 0 && permission_exists('destination_prefix') && $action == 'add') { $msg .= $text['message-required']." ".$text['label-destination_country_code']."
\n"; } if (strlen($destination_number) == 0 && $action == 'add') { $msg .= $text['message-required']." ".$text['label-destination_number']."
\n"; } if (strlen($destination_context) == 0) { $msg .= $text['message-required']." ".$text['label-destination_context']."
\n"; } if (strlen($destination_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-destination_enabled']."
\n"; } @@ -1310,7 +1311,7 @@ //destination number if (permission_exists('destination_prefix')) { echo "\n"; - echo "\n"; + echo "\n"; echo " ".$text['label-destination_country_code']."\n"; echo "\n"; echo "\n";