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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

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