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
|
end
|
||||||
|
|
||||||
function SimpleForm.parse(self, ...)
|
function SimpleForm.parse(self, ...)
|
||||||
|
if luci.http.formvalue("cbi.submit") then
|
||||||
Node.parse(self, 1, ...)
|
Node.parse(self, 1, ...)
|
||||||
|
end
|
||||||
|
|
||||||
local valid = true
|
local valid = true
|
||||||
for i, v in ipairs(self.children) do
|
for i, v in ipairs(self.children) do
|
||||||
|
|
Loading…
Reference in a new issue