diff options
author | Steven Barth <steven@midlink.org> | 2009-11-22 20:33:00 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-22 20:33:00 +0000 |
commit | cba506cb709999b41c8da5c18b61c9a984b3d62a (patch) | |
tree | ef911615f86e7da0109c226f6b051f506e3db91c /libs | |
parent | 19758fae439cffad8adaf64f2e8f74ae452816ee (diff) |
CBI:
Allow skipping of non-routing wizard steps
Diffstat (limited to 'libs')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 8 |
1 files 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 |