summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc/cbi.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-26 19:36:41 +0000
committerSteven Barth <steven@midlink.org>2008-08-26 19:36:41 +0000
commit43b3217e5595acc91ff6d7614a5c21c88696fbcc (patch)
treeb14dea0be36166d5d3e47e236752f0c5b1d45c4b /libs/cbi/luasrc/cbi.lua
parent73815885d83973a39811bf0f430f9c9e7642c0ca (diff)
libs/cbi: Added support for enum dependencies
Diffstat (limited to 'libs/cbi/luasrc/cbi.lua')
-rw-r--r--libs/cbi/luasrc/cbi.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index 75c25adfa6..2583ecd070 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