From: Steven Barth Date: Thu, 30 Jul 2009 16:58:37 +0000 (+0000) Subject: Fix errorhandling in Delegators X-Git-Tag: 0.10.0~1276 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2561ed9b7ad5330e8af97047ef420f9bc0b413d0;p=oweals%2Fluci.git Fix errorhandling in Delegators --- diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 3a687e5aa..db76e3b92 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -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