diff options
author | Steven Barth <steven@midlink.org> | 2009-11-09 11:22:29 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-09 11:22:29 +0000 |
commit | 284f85fb4e185bf743c404161d0a83be858420c6 (patch) | |
tree | 34acaaf415122244926421317d58d76d3e0e174a /libs/cbi/luasrc/cbi.lua | |
parent | ca6a1fc3bc97f75aefec751aba48526e39d7d38b (diff) |
CBI: Fix subdependencies
Diffstat (limited to 'libs/cbi/luasrc/cbi.lua')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 8ca9e5c8d..f6a2694b2 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -1265,6 +1265,7 @@ function AbstractValue.__init__(self, map, section, option, ...) self.tag_reqerror = {} self.tag_error = {} self.deps = {} + self.subdeps = {} --self.cast = "string" self.track_missing = false @@ -1595,7 +1596,7 @@ function ListValue.value(self, key, val, ...) table.insert(self.vallist, tostring(val)) for i, deps in ipairs({...}) do - table.insert(self.deps, {add = "-"..key, deps=deps}) + self.subdeps[#self.subdeps + 1] = {add = "-"..key, deps=deps} end end |