From 2d175db556e90c4a1097b17f020dd748be570166 Mon Sep 17 00:00:00 2001 From: Andrew Querol Date: Thu, 11 Mar 2021 10:36:16 -0600 Subject: [PATCH] Fix bulk device imports with TFTP path enabled If you bulk imported devices and had the TFTP path set the configuration files would not be written out to the TFTP path. --- app/devices/device_imports.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/devices/device_imports.php b/app/devices/device_imports.php index a62ae53862..72c7441986 100644 --- a/app/devices/device_imports.php +++ b/app/devices/device_imports.php @@ -357,6 +357,12 @@ $database->save($array); //$message = $database->message; } + + if (strlen($_SESSION['provision']['path']['text']) > 0) { + $prov = new provision; + $prov->domain_uuid = $domain_uuid; + $response = $prov->write(); + } //send the redirect header header("Location: devices.php");