libs/cbi: Prevent SimpleForms from prematurely parsing form data
This commit is contained in:
parent
cfb11046a6
commit
d46f017564
1 changed files with 3 additions and 1 deletions
|
@ -260,7 +260,9 @@ function SimpleForm.__init__(self, config, title, description, data)
|
|||
end
|
||||
|
||||
function SimpleForm.parse(self, ...)
|
||||
Node.parse(self, 1, ...)
|
||||
if luci.http.formvalue("cbi.submit") then
|
||||
Node.parse(self, 1, ...)
|
||||
end
|
||||
|
||||
local valid = true
|
||||
for i, v in ipairs(self.children) do
|
||||
|
|
Loading…
Reference in a new issue