CBI: Delegators: Don't proceed when step is not completed yet
This commit is contained in:
parent
1e9b205464
commit
e93a3e0c74
1 changed files with 3 additions and 2 deletions
|
@ -614,11 +614,12 @@ function Delegator.parse(self, ...)
|
||||||
|
|
||||||
if not Map.formvalue(self, "cbi.submit") then
|
if not Map.formvalue(self, "cbi.submit") then
|
||||||
return FORM_NODATA
|
return FORM_NODATA
|
||||||
elseif not newcurrent or not self:get(newcurrent) then
|
elseif stat > FORM_PROCEED
|
||||||
|
and (not newcurrent or not self:get(newcurrent)) then
|
||||||
self:_run_hooks("on_done")
|
self:_run_hooks("on_done")
|
||||||
return FORM_DONE
|
return FORM_DONE
|
||||||
else
|
else
|
||||||
self.current = newcurrent
|
self.current = newcurrent or self.current
|
||||||
self.active = self:get(self.current)
|
self.active = self:get(self.current)
|
||||||
if type(self.active) ~= "function" then
|
if type(self.active) ~= "function" then
|
||||||
self.active:parse(false)
|
self.active:parse(false)
|
||||||
|
|
Loading…
Reference in a new issue