Changeset 3824
- Timestamp:
- 11/28/08 00:03:50 (4 years ago)
- Files:
-
- 1 modified
-
luci/trunk/libs/cbi/luasrc/cbi.lua (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/libs/cbi/luasrc/cbi.lua
r3735 r3824 1096 1096 1097 1097 self.track_missing = false 1098 --self.rmempty = false1098 self.rmempty = true 1099 1099 self.default = nil 1100 1100 self.size = nil … … 1107 1107 and self.map:get_scheme(self.section.sectiontype, self.option) then 1108 1108 local vs = self.map:get_scheme(self.section.sectiontype, self.option) 1109 if self.rmempty == nil then1110 self.rmempty = not vs.required1111 end1112 1109 if self.cast == nil then 1113 1110 self.cast = (vs.type == "list") and "list" or "string"
