From 413c14124f7ef369481c7d2c81fe518e4b197d82 Mon Sep 17 00:00:00 2001
From: Sergey <63499796+SergeyParfenoff@users.noreply.github.com>
Date: Tue, 30 Dec 2025 20:07:04 +0300
Subject: [PATCH] Fix 8021q ports forms
Forms on the 802.1Q ports page are invalid HTML - forms nested within table/tbody/tr elements get moved outside by browsers, breaking DOM manipulation in JS. Forms must wrap the entire table or be inside table cells.
---
wwwroot/inc/interface-8021q.php | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/wwwroot/inc/interface-8021q.php b/wwwroot/inc/interface-8021q.php
index f38832722..7cc766aa1 100644
--- a/wwwroot/inc/interface-8021q.php
+++ b/wwwroot/inc/interface-8021q.php
@@ -429,11 +429,11 @@ function renderObject8021QPorts ($object_id)
$uplinks = filter8021QChangeRequests ($vdom['vlanlist'], $desired_config, produceUplinkPorts ($vdom['vlanlist'], $desired_config, $vswitch['object_id']));
echo '
';
// port list
+ if ($req_port_name == '');
+ printOpFormIntro ('save8021QConfig', array ('mutex_rev' => $vswitch['mutex_rev'], 'form_mode' => 'save'));
echo '