Fix errorhandling in Delegators
authorSteven Barth <steven@midlink.org>
Thu, 30 Jul 2009 16:58:37 +0000 (16:58 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 30 Jul 2009 16:58:37 +0000 (16:58 +0000)
libs/cbi/luasrc/cbi.lua

index 3a687e5aa5f1ff7781efbca98d8b736607de2a82..db76e3b92f338e6b564d0c597ba69b7323605546 100644 (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