luci/modules/luci-base/luasrc/view
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
..
cbi luci-base: fix field section add button/input field names 2018-07-16 17:34:26 +02:00
csrftoken.htm luci-base: add support for POST-only actions with CSRF token check 2015-10-06 15:56:35 +02:00
error404.htm luci-base: error404: do not access request env directly 2018-04-10 12:01:43 +02:00
error500.htm Globally convert headline anchors into name attributes. 2015-10-06 13:30:33 +02:00
footer.htm Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
header.htm Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
indexer.htm Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
sysauth.htm luci-base: globally cleanup markup 2018-06-23 17:13:22 +02:00