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:
Mark Crane
2015-05-30 07:35:50 +00:00
parent adae336c01
commit 4a85e9e33a

View File

@@ -266,7 +266,7 @@ include "root.php";
unset($template_list);
//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();
$sql = "INSERT INTO v_devices ";
$sql .= "(";