summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/web/luasrc/cbi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/cbi.lua b/libs/web/luasrc/cbi.lua
index 17ca18c94..403935aec 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