summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-20 00:51:01 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-20 00:51:01 +0000
commiteedf5359965d8076eca3dc2e8aac002e04ed3525 (patch)
tree8e9616b123826fbff43476fd59c73c358bec4de4 /libs/cbi
parent85ecde56c0541f1aa64448f2c78b177034d507ac (diff)
libs/cbi: remove workaround for libuci
Diffstat (limited to 'libs/cbi')
-rw-r--r--libs/cbi/luasrc/cbi.lua7
1 files changed, 0 insertions, 7 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index a43461389..275c3f3c3 100644
--- 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