- -- Remove
- crval = REMOVE_PREFIX .. self.config
- name = luci.http.formvaluetable(crval)
- for k,v in pairs(name) do
- if self:cfgvalue(k) and self:checkscope(k) then
- self:remove(k)
- end
- end
- end
-
- local co
- for i, k in ipairs(self:cfgsections()) do
- AbstractSection.parse_dynamic(self, k)
- if luci.http.formvalue("cbi.submit") then
- Node.parse(self, k)
-
- if not self.override_scheme and self.map.scheme then
- local co = self.map:get()
- local stat, err = self.map.validator:validate_section(self.config, k, co)
- if err then
- self.map.save = false
- if err.code == luci.uvl.errors.ERR_DEPENDENCY then
- self.tag_deperror[k] = true
- else
- self.tag_invalid[k] = true
- end
- for i, v in ipairs(err.childs) do
- if v.option and self.fields[v.option] then
- if v.code == luci.uvl.errors.ERR_DEPENDENCY then
- self.fields[v.option].tag_reqerror[k] = true
- elseif v.code == luci.uvl.errors.ERR_OPTION then
- self.fields[v.option].tag_invalid[k] = true
- end
- end
- end
- end
- end