Update destination_edit.php (#4810)
This commit is contained in:
parent
3b67c380e6
commit
705f455c04
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue