From 39e919f6249bc70021b47b520fe74bd84282f1ad Mon Sep 17 00:00:00 2001 From: Nikolay Beketov Date: Tue, 5 Nov 2024 17:40:11 +0700 Subject: [PATCH] Fix tests Fix network settings save --- src/AdminCabinet/Controllers/NetworkController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AdminCabinet/Controllers/NetworkController.php b/src/AdminCabinet/Controllers/NetworkController.php index 9e46d1bd..232dd3d7 100644 --- a/src/AdminCabinet/Controllers/NetworkController.php +++ b/src/AdminCabinet/Controllers/NetworkController.php @@ -164,7 +164,7 @@ private function fillEthStructure(LanInterfaces $eth, array $data): void { $isDocker = Util::isDocker(); foreach ($eth as $name => $value) { - $itIsInternetInterfce = $eth->id === $data['internet_interface']; + $itIsInternetInterfce = intval($eth->id) === intval($data['internet_interface']); switch ($name) { case 'topology': if ($itIsInternetInterfce) {