From cba506cb709999b41c8da5c18b61c9a984b3d62a Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 22 Nov 2009 20:33:00 +0000 Subject: CBI: Allow skipping of non-routing wizard steps --- libs/cbi/luasrc/cbi.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3