Update device_profile_edit.php
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Copyright (C) 2008-2015 All Rights Reserved.
|
Copyright (C) 2008-2016 All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
@@ -122,17 +122,21 @@
|
|||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//prepare the array
|
||||||
|
$array['device_profiles'][] = $_POST;
|
||||||
|
|
||||||
//set the default
|
//set the default
|
||||||
$save = true;
|
$save = true;
|
||||||
|
|
||||||
//save the profile
|
//save the profile
|
||||||
if ($save) {
|
if ($save) {
|
||||||
$orm = new orm;
|
$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) {
|
if (strlen($device_profile_uuid) > 0) {
|
||||||
$orm->uuid($device_profile_uuid);
|
$orm->uuid($device_profile_uuid);
|
||||||
}
|
}
|
||||||
$orm->save($_POST);
|
$orm->save($array);
|
||||||
$response = $orm->message;
|
$response = $orm->message;
|
||||||
if (strlen($response['uuid']) > 0) {
|
if (strlen($response['uuid']) > 0) {
|
||||||
$device_profile_uuid = $response['uuid'];
|
$device_profile_uuid = $response['uuid'];
|
||||||
|
|||||||
Reference in New Issue
Block a user