From 60aad56d0e18c3a2f02242c82e6c0a7317fce411 Mon Sep 17 00:00:00 2001 From: Chuck Date: Sun, 11 Jan 2026 15:41:47 -0500 Subject: [PATCH] fix: Add bracket notation to checkbox-group input names The backend expects checkbox groups to submit with bracket notation (request.form.getlist("[]")), but the templates were rendering checkboxes without the "[]" suffix in the name attribute. Changes: 1. Add name="{{ full_key }}[]" to checkbox inputs in plugin_config.html 2. Add name="${fullKey}[]" to checkbox inputs in plugins_manager.js This ensures: - Checked checkboxes submit their values with the bracket notation - Backend can use request.form.getlist("[]") to collect all values - Sentinel hidden input (already using bracket notation) works correctly - Backend bracket_array_fields logic receives and processes the array values The sentinel hidden input ensures the field is always submitted (even when all checkboxes are unchecked), allowing the backend to detect and set empty arrays correctly. --- web_interface/static/v3/plugins_manager.js | 1 + web_interface/templates/v3/partials/plugin_config.html | 1 + 2 files changed, 2 insertions(+) diff --git a/web_interface/static/v3/plugins_manager.js b/web_interface/static/v3/plugins_manager.js index 2206fafa..26ab4d49 100644 --- a/web_interface/static/v3/plugins_manager.js +++ b/web_interface/static/v3/plugins_manager.js @@ -3021,6 +3021,7 @@ function generateFieldHtml(key, prop, value, prefix = '') {