* luci/libs/uvl: allow combined enum/valueof options
This commit is contained in:
parent
c5278e17dc
commit
98ff081c9f
1 changed files with 2 additions and 2 deletions
|
@ -630,7 +630,7 @@ function UVL._read_scheme_parts( self, scheme, schemes )
|
||||||
local oo = so:option(r[3])
|
local oo = so:option(r[3])
|
||||||
local eo = oo:enum(v.value)
|
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))
|
return false, scheme:error(ERR.SME_EBADTYPE(eo))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue