X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=libs%2Fweb%2Fluasrc%2Fcbi.lua;fp=libs%2Fweb%2Fluasrc%2Fcbi.lua;h=403935aec14892a9ad2f5b2037679adc2434eb9e;hb=bc78f7e08d1feeda45b33a616bd69bd138897cb3;hp=17ca18c9411493d1ff65e35eba715029162bdf50;hpb=85a5d628ecded0d773ed09ec5e3509b3d8f818d4;p=project%2Fluci.git diff --git a/libs/web/luasrc/cbi.lua b/libs/web/luasrc/cbi.lua index 17ca18c941..403935aec1 100644 --- a/libs/web/luasrc/cbi.lua +++ b/libs/web/luasrc/cbi.lua @@ -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