From 8a73423bf1230af13563552a6bf596d2aed7590b Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Wed, 11 Mar 2026 09:36:57 +0200 Subject: [PATCH] =?UTF-8?q?Auto-VLAN=20k=C3=A4ytt=C3=A4=C3=A4=20subnetin?= =?UTF-8?q?=20nime=C3=A4=20+=20poistettu=20Reserved-tila?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Auto-VLAN saa subnetin/IP:n nimen (ei enää geneeristä 'VLAN X') - Poistettu 'Reserved' tila-vaihtoehto lomakkeesta (Varattu riittää) Co-Authored-By: Claude Opus 4.6 --- api.php | 2 +- index.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api.php b/api.php index 8292136..d7a10c2 100644 --- a/api.php +++ b/api.php @@ -1852,7 +1852,7 @@ switch ($action) { $newVlan = [ 'id' => generateId(), 'tyyppi' => 'vlan', - 'nimi' => 'VLAN ' . $vlanNum, + 'nimi' => trim($entry['nimi']) ?: ('VLAN ' . $vlanNum), 'verkko' => '', 'vlan_id' => $vlanNum, 'site_id' => $entry['site_id'], diff --git a/index.html b/index.html index 18b2acc..2b9a970 100644 --- a/index.html +++ b/index.html @@ -1034,7 +1034,6 @@