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:
c2f7995
)
Fixed enum dependencies
author
Steven Barth
<steven@midlink.org>
Thu, 28 Aug 2008 09:11:16 +0000
(09:11 +0000)
committer
Steven Barth
<steven@midlink.org>
Thu, 28 Aug 2008 09:11:16 +0000
(09:11 +0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index a43809d2cbb77db252530eccb8e9de5921fa196c..0a406c43e5eba84665ddb922c5198add491c55eb 100644
(file)
--- a/
libs/cbi/luasrc/cbi.lua
+++ b/
libs/cbi/luasrc/cbi.lua
@@
-1012,7
+1012,9
@@
function ListValue.__init__(self, ...)
for k, v in pairs(vs.values) do
local deps = {}
if vs.enum_depends and vs.enum_depends[k] then
- deps = _uvl_strip_remote_dependencies(vs.enum_depends[k])
+ for i, dep in ipairs(vs.enum_depends[k]) do
+ table.insert(deps, _uvl_strip_remote_dependencies(dep))
+ end
end
self:value(k, v, unpack(deps))
end