From 43b3217e5595acc91ff6d7614a5c21c88696fbcc Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 26 Aug 2008 19:36:41 +0000 Subject: [PATCH] libs/cbi: Added support for enum dependencies --- libs/cbi/luasrc/cbi.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 75c25adfa..2583ecd07 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -1030,7 +1030,11 @@ function ListValue.__init__(self, ...) self:value("") end for k, v in pairs(vs.values) do - self:value(k, v) + local deps = {} + if vs.enum_depends and vs.enum_depends[k] then + deps = _uvl_strip_remote_dependencies(vs.enum_depends[k]) + end + self:value(k, v, unpack(deps)) end end end -- 2.25.1