Update destination_edit.php

This commit is contained in:
FusionPBX
2018-01-10 20:04:56 -07:00
committed by GitHub
parent cb6d484f37
commit 203c8bcd35

View File

@@ -126,7 +126,6 @@
}
else {
$destination_uuid = uuid();
$_POST["destination_uuid"] = $destination_uuid;
}
//set the default context
@@ -219,6 +218,11 @@
$dialplan_uuid = uuid();
}
//build the destination array
$destination = $_POST;
$destination["destination_uuid"] = $destination_uuid;
$destination["dialplan_uuid"] = $dialplan_uuid;
//build the dialplan array
$dialplan["app_uuid"] = "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4";
$dialplan["dialplan_uuid"] = $dialplan_uuid;
@@ -525,7 +529,7 @@
}
//prepare the array
$array['destinations'][] = $_POST;
$array['destinations'][] = $destination;
$array['dialplans'][] = $dialplan;
unset($dialplan);