libs/cbi: remove workaround for libuci
This commit is contained in:
parent
85ecde56c0
commit
eedf535996
1 changed files with 0 additions and 7 deletions
|
@ -1264,13 +1264,6 @@ AbstractValue.transform = AbstractValue.validate
|
||||||
|
|
||||||
-- Write to UCI
|
-- Write to UCI
|
||||||
function AbstractValue.write(self, section, value)
|
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)
|
return self.map:set(section, self.option, value)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue