mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update device_profile_copy.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>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2015
|
Portions created by the Initial Developer are Copyright (C) 2008-2016
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -104,16 +104,17 @@
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
//create the device array
|
//create the device array
|
||||||
$device_profile = $device_profiles[0];
|
$array["device_profile"][0] = $device_profiles;
|
||||||
$device_profile["device_keys"] = $device_keys;
|
$array["device_profile"][0]["device_keys"] = $device_keys;
|
||||||
//$device["device_settings"] = $device_settings;
|
//$array["device_settings"][0] = $device_settings;
|
||||||
|
|
||||||
//copy the device
|
//copy the device
|
||||||
if ($save) {
|
if ($save) {
|
||||||
$orm = new orm;
|
$database = new database;
|
||||||
$orm->name('device_profiles');
|
$database->app_name = 'devices';
|
||||||
$orm->save($device_profile);
|
$database->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e';
|
||||||
$response = $orm->message;
|
$database->save($array);
|
||||||
|
$response = $database->message;
|
||||||
$_SESSION["message"] = $text['message-copy'];
|
$_SESSION["message"] = $text['message-copy'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user