Update destination_edit.php

This commit is contained in:
FusionPBX 2018-10-16 22:14:42 -06:00 committed by GitHub
parent 92d3d9fc2d
commit 68df93ca05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -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;
}