mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update destination_edit.php (#4810)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user