diff options
author | Steven Barth <steven@midlink.org> | 2008-08-28 09:11:16 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-28 09:11:16 +0000 |
commit | 12912ba7a458d1e513b922121f97a915664bec3c (patch) | |
tree | e304c6cfeb1b517207fe8a119429c26d5ca8770a /libs/cbi | |
parent | c2f79950b2ca88947a29b9c480b41962ed95f6f1 (diff) |
Fixed enum dependencies
Diffstat (limited to 'libs/cbi')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index a43809d2c..0a406c43e 100644 --- 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 |