From: Steven Barth Date: Sun, 22 Nov 2009 20:33:00 +0000 (+0000) Subject: CBI: X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=cba506cb709999b41c8da5c18b61c9a984b3d62a;p=openwrt-luci.git CBI: Allow skipping of non-routing wizard steps --- diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index e265589746..c318e64b8e 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