From 203c8bcd356678c810c4b712f30bbb89b3b6096e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 10 Jan 2018 20:04:56 -0700 Subject: [PATCH] Update destination_edit.php --- app/destinations/destination_edit.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index ddd5449e9b..16c81ff3f6 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -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);