summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-07-30 16:58:37 +0000
committerSteven Barth <steven@midlink.org>2009-07-30 16:58:37 +0000
commit2561ed9b7ad5330e8af97047ef420f9bc0b413d0 (patch)
treecb724d41c85ce0cede6050e95844f7d4ba9beaea /libs/cbi
parentd7a90e994a1aa214e881c06e7e5d0a3f272a63ce (diff)
Fix errorhandling in Delegators
Diffstat (limited to 'libs/cbi')
-rw-r--r--libs/cbi/luasrc/cbi.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index 3a687e5aa5..db76e3b92f 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