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