Update destination_edit.php
This commit is contained in:
@@ -126,7 +126,6 @@
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$destination_uuid = uuid();
|
$destination_uuid = uuid();
|
||||||
$_POST["destination_uuid"] = $destination_uuid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the default context
|
//set the default context
|
||||||
@@ -219,6 +218,11 @@
|
|||||||
$dialplan_uuid = uuid();
|
$dialplan_uuid = uuid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//build the destination array
|
||||||
|
$destination = $_POST;
|
||||||
|
$destination["destination_uuid"] = $destination_uuid;
|
||||||
|
$destination["dialplan_uuid"] = $dialplan_uuid;
|
||||||
|
|
||||||
//build the dialplan array
|
//build the dialplan array
|
||||||
$dialplan["app_uuid"] = "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4";
|
$dialplan["app_uuid"] = "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4";
|
||||||
$dialplan["dialplan_uuid"] = $dialplan_uuid;
|
$dialplan["dialplan_uuid"] = $dialplan_uuid;
|
||||||
@@ -525,7 +529,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//prepare the array
|
//prepare the array
|
||||||
$array['destinations'][] = $_POST;
|
$array['destinations'][] = $destination;
|
||||||
$array['dialplans'][] = $dialplan;
|
$array['dialplans'][] = $dialplan;
|
||||||
unset($dialplan);
|
unset($dialplan);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user