From: Steven Barth Date: Wed, 10 Sep 2008 15:35:11 +0000 (+0000) Subject: UVL: Export raw value of "valueof" for references X-Git-Tag: 0.9.0~1353 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=38691ce540ebfacfbf35273a73195a6b2cc2879a UVL: Export raw value of "valueof" for references --- diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index f3334615e..52531be32 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -579,6 +579,7 @@ function UVL._parse_var(self, scheme, k, v) end t.type = "reference" t.values = values + t.valueof = type(v2) == "table" and v2 or {v2} elseif k == "required" then t[k] = _bool(v2) else