From 76cf3be5e43a4e73200d7da70ca8863a76936336 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 10 Oct 2016 10:41:57 -0600 Subject: [PATCH] Update device_profile_edit.php --- app/devices/device_profile_edit.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/devices/device_profile_edit.php b/app/devices/device_profile_edit.php index 52bf9ae710..24e1bbd95a 100644 --- a/app/devices/device_profile_edit.php +++ b/app/devices/device_profile_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Copyright (C) 2008-2015 All Rights Reserved. + Copyright (C) 2008-2016 All Rights Reserved. Contributor(s): Mark J Crane @@ -122,17 +122,21 @@ $x++; } + //prepare the array + $array['device_profiles'][] = $_POST; + //set the default $save = true; //save the profile if ($save) { $orm = new orm; - $orm->name('device_profiles'); + $orm->app_name = 'devices'; + $orm->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e'; if (strlen($device_profile_uuid) > 0) { $orm->uuid($device_profile_uuid); } - $orm->save($_POST); + $orm->save($array); $response = $orm->message; if (strlen($response['uuid']) > 0) { $device_profile_uuid = $response['uuid'];