From 8d1aff78b17d6f7437d776bdf53a6aa2112f31db Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 16 Jul 2008 18:54:10 +0000 Subject: modules/admin-mini: Added Wifi configuration several smaller bugfixes and enhancements --- libs/cbi/luasrc/cbi.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'libs/cbi/luasrc/cbi.lua') diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index b9383a3ec4..6aec2fbbbc 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -356,10 +356,9 @@ function NamedSection.parse(self) return end else -- Create and apply default values - if luci.http.formvalue("cbi.cns."..path) and self:create(s) then - for k,v in pairs(self.children) do - v:write(s, v.default) - end + if luci.http.formvalue("cbi.cns."..path) then + self:create(s) + return end end end @@ -643,10 +642,6 @@ function DummyValue.parse(self) end -function DummyValue.render(self, s) - luci.template.render(self.template, {self=self, section=s}) -end - --[[ Flag - A flag being enabled or disabled -- cgit v1.2.3