projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85a5d62
)
libs/web: implement forcewrite attribute for cbi options
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 30 Oct 2010 02:30:09 +0000
(
02:30
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 30 Oct 2010 02:30:09 +0000
(
02:30
+0000)
libs/web/luasrc/cbi.lua
patch
|
blob
|
history
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