mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Update destination_edit.php
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user