From 731955a183be480cd8bfaaf7fe23e5c8f43261fa Mon Sep 17 00:00:00 2001 From: lgromero Date: Thu, 5 Jun 2025 11:04:03 +0200 Subject: [PATCH] fix bug in create host in dhcp --- api/src/DhcpBundle/Controller/DhcpController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/DhcpBundle/Controller/DhcpController.php b/api/src/DhcpBundle/Controller/DhcpController.php index 79e36a9..daa3c4f 100644 --- a/api/src/DhcpBundle/Controller/DhcpController.php +++ b/api/src/DhcpBundle/Controller/DhcpController.php @@ -1383,7 +1383,7 @@ public function addDhcpHost(Request $request, $subnetId): JsonResponse $macAddress = htmlspecialchars($input->macAddress); $address = htmlspecialchars($input->address); // $bootFileName= htmlspecialchars($input->bootFileName); - $bootFileName = isset($input->bootFileName) ? htmlspecialchars($input->bootFileName) : null; + $bootFileName = isset($input->bootFileName) ? htmlspecialchars($input->bootFileName) : null; } catch (Exception $e) { $errorText = $e->getMessage(); $this->logger->error(json_encode([ @@ -1408,8 +1408,7 @@ public function addDhcpHost(Request $request, $subnetId): JsonResponse $newHost = [ "hostname" => $host, "hw-address" => $macAddress, - "ip-address" => $address, - "boot-file-name" => $bootFileName + "ip-address" => $address ]; $subnetFound = false;