Update destination_edit.php (#4810)

This commit is contained in:
agree 2019-10-30 21:06:31 -04:00 committed by FusionPBX
parent 3b67c380e6
commit 705f455c04
1 changed files with 1 additions and 1 deletions

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;