summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-18 02:06:59 +0000
committerSteven Barth <steven@midlink.org>2008-08-18 02:06:59 +0000
commit935f4a805a484a3325016493e87c82e6b0180fa8 (patch)
tree5c2016bdeb0b90c684ef600672597dd8bafe3d5c /libs/cbi/luasrc
parent23b17ce06fcbde0237b919a758ef4f0ed33250c9 (diff)
Small bug fixes
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r--libs/cbi/luasrc/cbi.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index 6cc0908823..9a32dd68d0 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -162,6 +162,15 @@ function Map.__init__(self, config, ...)
end
end
+function Map.render(self, ...)
+ if self.stateful then
+ uci.load_state(self.config)
+ else
+ uci.load_config(self.config)
+ end
+ Node.render(self, ...)
+end
+
-- Chain foreign config
function Map.chain(self, config)