From 935f4a805a484a3325016493e87c82e6b0180fa8 Mon Sep 17 00:00:00 2001 From: Steven Barth <steven@midlink.org> Date: Mon, 18 Aug 2008 02:06:59 +0000 Subject: Small bug fixes --- libs/cbi/luasrc/cbi.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libs/cbi/luasrc/cbi.lua') 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) -- cgit v1.2.3