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
newcurrent = self:get_next(self.current)
end
elseif stat < FORM_PROCEED then
return stat
end
if not Map.formvalue(self, "cbi.submit") then
return FORM_NODATA
elseif not newcurrent or not self:get(newcurrent) then