From 3247357c5dfa935306ac63cd54c8b9e45debacb5 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 22 Mar 2023 10:01:43 -0600 Subject: [PATCH] Remove action == add --- app/destinations/destination_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index b4ac666583..380ce6106e 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -174,8 +174,8 @@ //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_prefix) == 0 && permission_exists('destination_prefix')) { $msg .= $text['message-required']." ".$text['label-destination_country_code']."
\n"; } + if (strlen($destination_number) == 0) { $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"; }