luci/modules
Jo-Philipp Wich fcc9cd6a9a luci-base: fix field section add button/input field names
Some CBI map models, mainly the Network -> VLAN page, expect a valid
previous section ID in their Section:create() callback.

Previous refactoring of the tblsection markup broke this behaviour as
the "section" loop variable was accidentally localized, causing it to
be undefined outside of the loop body which caused the section add
button and name input fields to get rendered with a wrong "name"
attribute.

Fix this by moving the "section" variable declaration out of the loop
and by readding references to it in the non-anonymous section add case.

Fixes FS#1657
Fixes 002c4d1d5 ("luci-base: add "Name" label to autogenerated title column")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-16 17:34:26 +02:00
..
luci-base luci-base: fix field section add button/input field names 2018-07-16 17:34:26 +02:00
luci-mod-admin-full luci-mod-admin-full: fix changing alias interface ifnames 2018-07-15 17:29:01 +02:00
luci-mod-admin-mini treewide: unify mac address handling 2018-03-12 16:12:18 +01:00
luci-mod-failsafe luci-mod-failsafe: use same string as luci-mod-admin-full 2016-12-10 19:11:50 +02:00
luci-mod-freifunk treewide: always include cbi.js 2018-07-09 11:51:43 +02:00
luci-mod-freifunk-community Rework LuCI build system 2015-01-08 16:26:20 +01:00
luci-mod-rpc luci-mod-rpc: fix unresolved controller reference in rpc_auth() 2018-05-18 16:58:17 +02:00