Changeset 3824

Show
Ignore:
Timestamp:
11/28/08 00:03:50 (4 years ago)
Author:
Cyrus
Message:

Enable rmempty by default

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/cbi/luasrc/cbi.lua

    r3735 r3824  
    10961096 
    10971097    self.track_missing = false 
    1098     --self.rmempty   = false 
     1098    self.rmempty   = true 
    10991099    self.default   = nil 
    11001100    self.size      = nil 
     
    11071107     and self.map:get_scheme(self.section.sectiontype, self.option) then 
    11081108        local vs = self.map:get_scheme(self.section.sectiontype, self.option) 
    1109         if self.rmempty == nil then 
    1110             self.rmempty = not vs.required 
    1111         end 
    11121109        if self.cast == nil then 
    11131110            self.cast = (vs.type == "list") and "list" or "string"