mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 23:34:34 +04:00
libs/cbi: Prevent SimpleForms from prematurely parsing form data
This commit is contained in:
@@ -260,7 +260,9 @@ function SimpleForm.__init__(self, config, title, description, data)
|
||||
end
|
||||
|
||||
function SimpleForm.parse(self, ...)
|
||||
if luci.http.formvalue("cbi.submit") then
|
||||
Node.parse(self, 1, ...)
|
||||
end
|
||||
|
||||
local valid = true
|
||||
for i, v in ipairs(self.children) do
|
||||
|
||||
Reference in New Issue
Block a user