From b785e0cc66c7171012bfce71950de7b76d93cb22 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 30 May 2015 07:35:50 +0000 Subject: [PATCH] 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. --- app/provision/resources/classes/provision.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php index 75bcb61585..cfc27e55e9 100644 --- a/app/provision/resources/classes/provision.php +++ b/app/provision/resources/classes/provision.php @@ -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 .= "(";