Add an option for a default setting that uses provision -> auto_insert_enabled type: boolean value: true.
This will not be set by default so the provision auto insert will be disabled by default.
This commit is contained in:
@@ -266,7 +266,7 @@ include "root.php";
|
|||||||
unset($template_list);
|
unset($template_list);
|
||||||
|
|
||||||
//mac address does not exist in the table so add it
|
//mac address does not exist in the table so add it
|
||||||
if (strlen($domain_uuid) > 0) {
|
if ($_SESSION['provision']['auto_insert_enabled']['boolean'] == "true" and strlen($domain_uuid) > 0) {
|
||||||
$device_uuid = uuid();
|
$device_uuid = uuid();
|
||||||
$sql = "INSERT INTO v_devices ";
|
$sql = "INSERT INTO v_devices ";
|
||||||
$sql .= "(";
|
$sql .= "(";
|
||||||
|
|||||||
Reference in New Issue
Block a user