From: Steven Barth Date: Sun, 22 Nov 2009 20:33:00 +0000 (+0000) Subject: CBI: X-Git-Tag: 0.10.0~933 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cba506cb709999b41c8da5c18b61c9a984b3d62a;p=oweals%2Fluci.git CBI: Allow skipping of non-routing wizard steps --- diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index e26558974..c318e64b8 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -617,8 +617,12 @@ function Delegator.parse(self, ...) self.active = self:get(self.current) if type(self.active) ~= "function" then self.active:populate_delegator(self) - self.active:parse(false) - return FROM_PROCEED + local stat = self.active:parse(false) + if stat == FORM_SKIP then + return self:parse(...) + else + return FORM_PROCEED + end else return self:parse(...) end