From 6e25a4a7bf20317416d24acb76ab60617c63e269 Mon Sep 17 00:00:00 2001 From: fusionate Date: Mon, 16 Nov 2020 12:52:14 -0700 Subject: [PATCH] Destinations: Apply destinations > unique default setting. --- 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 b3731dcf83..f5ba0c6f29 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -161,7 +161,7 @@ if (strlen($destination_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-destination_enabled']."
\n"; } //check for duplicates - if ($destination_type == 'inbound' && $destination_number != $db_destination_number) { + if ($destination_type == 'inbound' && $destination_number != $db_destination_number && $_SESSION['destinations']['unique']['boolean'] == 'true') { $sql = "select count(*) from v_destinations "; $sql .= "where (destination_number = :destination_number or destination_prefix || destination_number = :destination_number) "; $sql .= "and destination_type = 'inbound' ";