summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-30 02:30:09 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-30 02:30:09 +0000
commitbc78f7e08d1feeda45b33a616bd69bd138897cb3 (patch)
tree7677360d589016c54393c4fafa0c0001552f7148
parent85a5d628ecded0d773ed09ec5e3509b3d8f818d4 (diff)
libs/web: implement forcewrite attribute for cbi options
-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 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