From b58a905ca4419fb7dd3bc1d2f4e57325e49602d8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 3 Aug 2016 00:50:11 -0600 Subject: [PATCH] Update destination_edit.php Only check for duplicates on inbound destinations. --- 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 5debfbf54c..fb5ef25347 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -125,7 +125,7 @@ if (strlen($destination_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-destination_enabled']."
\n"; } //check for duplicates - if ($action == "add" || $destination_number != $db_destination_number) { + if ($destination_type == 'inbound' && $destination_number != $db_destination_number) { $sql = "select count(*) as num_rows from v_destinations "; $sql .= "where destination_number = '".$destination_number."' "; $prep_statement = $db->prepare($sql);