diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-07 00:44:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-07 00:44:54 +0000 |
commit | 98ff081c9f67d876349a56a1b75e1fae51bc15e2 (patch) | |
tree | ce01be70806cb9b49eeeccb4d2f9337e66fbc25a | |
parent | c5278e17dc329be547c33a46e56fd655c77476c2 (diff) |
* luci/libs/uvl: allow combined enum/valueof options
-rw-r--r-- | libs/uvl/luasrc/uvl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index aada2e6c23..f40063c7b4 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -391,7 +391,7 @@ function UVL.read_scheme( self, scheme, alias ) return true else return false, so:error(ERR.SME_READ(so,bc)) - end + end end end @@ -630,7 +630,7 @@ function UVL._read_scheme_parts( self, scheme, schemes ) local oo = so:option(r[3]) local eo = oo:enum(v.value) - if t.type ~= "enum" then + if t.type ~= "enum" and t.type ~= "reference" then return false, scheme:error(ERR.SME_EBADTYPE(eo)) end |