Update destination_edit.php
This commit is contained in:
parent
92d3d9fc2d
commit
68df93ca05
|
|
@ -576,16 +576,12 @@
|
|||
|
||||
//remove empty dialplan details from the POST array
|
||||
unset($_POST["dialplan_details"]);
|
||||
|
||||
//make sure the dialplan_uuid is set
|
||||
if(strlen($_POST["dialplan_uuid"]) == 0) {
|
||||
$_POST["dialplan_uuid"] = $dialplan_uuid;
|
||||
}
|
||||
}
|
||||
|
||||
//build the destination array
|
||||
$destination = $_POST;
|
||||
$destination["destination_uuid"] = $destination_uuid;
|
||||
$destination["dialplan_uuid"] = $dialplan_uuid;
|
||||
if ($destination_type == 'inbound' || $destination_type == 'local') {
|
||||
$destination["dialplan_uuid"] = $dialplan_uuid;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue