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:
85ecde5
)
libs/cbi: remove workaround for libuci
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 20 Jan 2009 00:51:01 +0000
(
00:51
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 20 Jan 2009 00:51:01 +0000
(
00:51
+0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index a434613891e065c7324f2f5f064c5c6a8ba2ca3e..275c3f3c361b8d7d19c2ee1c31f6fc5db28914e1 100644
(file)
--- a/
libs/cbi/luasrc/cbi.lua
+++ b/
libs/cbi/luasrc/cbi.lua
@@
-1264,13
+1264,6
@@
AbstractValue.transform = AbstractValue.validate
-- Write to UCI
function AbstractValue.write(self, section, value)
- -- Work around a bug in libuci-lua;
- -- list values are not overwritten but appended, resolve this
- -- by removing the value before
- if type(value) == "table" then
- self.map:del(section, self.option)
- end
-
return self.map:set(section, self.option, value)
end