From 2561ed9b7ad5330e8af97047ef420f9bc0b413d0 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 30 Jul 2009 16:58:37 +0000 Subject: Fix errorhandling in Delegators --- libs/cbi/luasrc/cbi.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3