Change device_model to device_uuid_alternate for the provision override.
This commit is contained in:
parent
144ac08ca9
commit
59b7e3078b
|
|
@ -201,7 +201,7 @@ include "root.php";
|
||||||
$device_description = $row["device_description"];
|
$device_description = $row["device_description"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//find a template that was defined on another phone and use that as the default.
|
//find a template that was defined on another phone and use that as the default.
|
||||||
if (strlen($device_template) == 0) {
|
if (strlen($device_template) == 0) {
|
||||||
$sql = "SELECT * FROM v_devices ";
|
$sql = "SELECT * FROM v_devices ";
|
||||||
|
|
@ -304,10 +304,10 @@ include "root.php";
|
||||||
if ($prep_statement_3) {
|
if ($prep_statement_3) {
|
||||||
$prep_statement_3->execute();
|
$prep_statement_3->execute();
|
||||||
$row = $prep_statement_3->fetch();
|
$row = $prep_statement_3->fetch();
|
||||||
$device_model = $row["device_model"];
|
$device_uuid_alternate = $row["device_uuid_alternate"];
|
||||||
if (is_uuid($device_model)) {
|
if (is_uuid($device_uuid_alternate)) {
|
||||||
//overide the original device_uuid
|
//override the original device_uuid
|
||||||
$device_uuid = $device_model;
|
$device_uuid = $device_uuid_alternate;
|
||||||
//get the new devices information
|
//get the new devices information
|
||||||
$sql = "SELECT * FROM v_devices ";
|
$sql = "SELECT * FROM v_devices ";
|
||||||
$sql .= "WHERE device_uuid = '".$device_uuid."' ";
|
$sql .= "WHERE device_uuid = '".$device_uuid."' ";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue