mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 21:24:35 +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
|
end
|
||||||
|
|
||||||
function SimpleForm.parse(self, ...)
|
function SimpleForm.parse(self, ...)
|
||||||
Node.parse(self, 1, ...)
|
if luci.http.formvalue("cbi.submit") then
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user