mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update destination_edit.php
Only check for duplicates on inbound destinations.
This commit is contained in:
@@ -125,7 +125,7 @@
|
|||||||
if (strlen($destination_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-destination_enabled']."<br>\n"; }
|
if (strlen($destination_enabled) == 0) { $msg .= $text['message-required']." ".$text['label-destination_enabled']."<br>\n"; }
|
||||||
|
|
||||||
//check for duplicates
|
//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 = "select count(*) as num_rows from v_destinations ";
|
||||||
$sql .= "where destination_number = '".$destination_number."' ";
|
$sql .= "where destination_number = '".$destination_number."' ";
|
||||||
$prep_statement = $db->prepare($sql);
|
$prep_statement = $db->prepare($sql);
|
||||||
|
|||||||
Reference in New Issue
Block a user