Update destination_edit.php (#4810)

This commit is contained in:
agree
2019-10-30 21:06:31 -04:00
committed by FusionPBX
parent dee06a3e2e
commit 278018f1c3

View File

@@ -153,7 +153,7 @@
//check for duplicates
if ($destination_type == 'inbound' && $destination_number != $db_destination_number) {
$sql = "select count(*) from v_destinations ";
$sql .= "where destination_number = :destination_number ";
$sql .= "where (destination_number = :destination_number or destination_prefix || destination_number = :destination_number) ";
$sql .= "and destination_type = 'inbound' ";
$parameters['destination_number'] = $destination_number;
$database = new database;