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.
This commit is contained in:
Andrew Querol
2021-03-11 10:36:16 -06:00
committed by GitHub
parent c35143a935
commit 2d175db556

View File

@@ -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");