From 57df8a02aa74075c386c23e58de2a03eb4c4bf55 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 1 Jul 2022 11:37:48 -0600 Subject: [PATCH] Require destination_number for add. Update can get the number from the database. --- app/destinations/destination_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 1e44014a10..b6e3a798ab 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -164,7 +164,7 @@ //check for all required data $msg = ''; if (strlen($destination_type) == 0) { $msg .= $text['message-required']." ".$text['label-destination_type']."
\n"; } - if (strlen($destination_number) == 0) { $msg .= $text['message-required']." ".$text['label-destination_number']."
\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"; }