Small bug fixes
[project/luci.git] / libs / cbi / luasrc / cbi.lua
index 6cc0908..9a32dd6 100644 (file)
@@ -162,6 +162,15 @@ function Map.__init__(self, config, ...)
        end
 end
 
        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)
 
 -- Chain foreign config
 function Map.chain(self, config)