summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-11-22 20:33:00 +0000
committerSteven Barth <steven@midlink.org>2009-11-22 20:33:00 +0000
commitcba506cb709999b41c8da5c18b61c9a984b3d62a (patch)
treeef911615f86e7da0109c226f6b051f506e3db91c /libs/cbi
parent19758fae439cffad8adaf64f2e8f74ae452816ee (diff)
CBI:
Allow skipping of non-routing wizard steps
Diffstat (limited to 'libs/cbi')
-rw-r--r--libs/cbi/luasrc/cbi.lua8
1 files changed, 6 insertions, 2 deletions
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