From 12912ba7a458d1e513b922121f97a915664bec3c Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 28 Aug 2008 09:11:16 +0000 Subject: Fixed enum dependencies --- libs/cbi/luasrc/cbi.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/cbi/luasrc/cbi.lua') 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 -- cgit v1.2.3