Fix errorhandling in Delegators

This commit is contained in:
Steven Barth 2009-07-30 16:58:37 +00:00
parent d7a90e994a
commit 2561ed9b7a

View file

@ -578,8 +578,11 @@ function Delegator.parse(self, ...)
else else
newcurrent = self:get_next(self.current) newcurrent = self:get_next(self.current)
end end
elseif stat < FORM_PROCEED then
return stat
end end
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 not newcurrent or not self:get(newcurrent) then