projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libs/web: implement forcewrite attribute for cbi options
[project/luci.git]
/
libs
/
web
/
luasrc
/
cbi.lua
diff --git
a/libs/web/luasrc/cbi.lua
b/libs/web/luasrc/cbi.lua
index 17ca18c9411493d1ff65e35eba715029162bdf50..403935aec14892a9ad2f5b2037679adc2434eb9e 100644
(file)
--- 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