libs/web: implement forcewrite attribute for cbi options
This commit is contained in:
parent
85a5d628ec
commit
bc78f7e08d
1 changed files with 1 additions and 1 deletions
|
@ -1281,7 +1281,7 @@ function AbstractValue.parse(self, section, novld)
|
|||
self:add_error(section, "invalid", val_err)
|
||||
end
|
||||
|
||||
if fvalue and not (fvalue == cvalue) then
|
||||
if fvalue and (self.forcewrite or not (fvalue == cvalue)) then
|
||||
if self:write(section, fvalue) then
|
||||
-- Push events
|
||||
self.section.changed = true
|
||||
|
|
Loading…
Reference in a new issue