Update destination_edit.php
This commit is contained in:
@@ -576,16 +576,12 @@
|
|||||||
|
|
||||||
//remove empty dialplan details from the POST array
|
//remove empty dialplan details from the POST array
|
||||||
unset($_POST["dialplan_details"]);
|
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
|
//build the destination array
|
||||||
$destination = $_POST;
|
$destination = $_POST;
|
||||||
$destination["destination_uuid"] = $destination_uuid;
|
$destination["destination_uuid"] = $destination_uuid;
|
||||||
|
$destination["dialplan_uuid"] = $dialplan_uuid;
|
||||||
if ($destination_type == 'inbound' || $destination_type == 'local') {
|
if ($destination_type == 'inbound' || $destination_type == 'local') {
|
||||||
$destination["dialplan_uuid"] = $dialplan_uuid;
|
$destination["dialplan_uuid"] = $dialplan_uuid;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user