libs/cbi: Temporarily allow invalid configuration values to be saved
authorSteven Barth <steven@midlink.org>
Sat, 30 Aug 2008 09:21:38 +0000 (09:21 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 30 Aug 2008 09:21:38 +0000 (09:21 +0000)
libs/cbi/luasrc/cbi.lua

index 2585e54590ac53c74456cde98463923d183dde67..7dabe2d6002a9fc84105c1fca7fad037787e66dc 100644 (file)
@@ -629,7 +629,7 @@ function NamedSection.parse(self)
                                local co = self.map:get()
                                local stat, err = self.map.validator:validate_section(self.config, s, co)
                                if err then
-                                       self.map.save = false
+                                       --self.map.save = false
                                        if err.code == luci.uvl.errors.ERR_DEPENDENCY then
                                                self.tag_deperror[s] = true
                                        else
@@ -745,7 +745,7 @@ function TypedSection.parse(self)
                                local co = self.map:get()
                                local stat, err = self.map.validator:validate_section(self.config, k, co)
                                if err then
-                                       self.map.save = false
+                                       --self.map.save = false
                                        if err.code == luci.uvl.errors.ERR_DEPENDENCY then
                                                self.tag_deperror[k] = true
                                        else