luci/modules/luci-base
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
..
htdocs luci-base: xhr: increase poll request timeout 2018-07-13 16:55:47 +02:00
luasrc luci-base: fix field section add button/input field names 2018-07-16 17:34:26 +02:00
po Merge pull request #1953 from angusding/patch-9 2018-07-16 16:40:13 +03:00
root Merge pull request #1769 from jow-/master 2018-05-18 16:44:33 +02:00
src Revert "luci-base: add urldecode() and urlencode() C implementations" 2018-04-18 16:21:27 +02:00
Makefile luci-base: update luasrcdiet 2018-06-27 16:41:02 +02:00