Fixed enum dependencies
authorSteven Barth <steven@midlink.org>
Thu, 28 Aug 2008 09:11:16 +0000 (09:11 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 28 Aug 2008 09:11:16 +0000 (09:11 +0000)
libs/cbi/luasrc/cbi.lua

index a43809d2cbb77db252530eccb8e9de5921fa196c..0a406c43e5eba84665ddb922c5198add491c55eb 100644 (file)
@@ -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