diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-30 02:30:09 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-30 02:30:09 +0000 |
commit | bc78f7e08d1feeda45b33a616bd69bd138897cb3 (patch) | |
tree | 7677360d589016c54393c4fafa0c0001552f7148 /libs/web | |
parent | 85a5d628ecded0d773ed09ec5e3509b3d8f818d4 (diff) |
libs/web: implement forcewrite attribute for cbi options
Diffstat (limited to 'libs/web')
-rw-r--r-- | libs/web/luasrc/cbi.lua | 2 |
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 |