* luci/libs: uvl: store valueof values as associative table
This commit is contained in:
parent
e124eec0e8
commit
a0b9f952e5
1 changed files with 2 additions and 2 deletions
|
@ -709,9 +709,9 @@ function UVL._read_reference( self, values )
|
|||
return nil, 'Illegal reference "%s" to an anonymous section'
|
||||
% value
|
||||
end
|
||||
table.insert( val, k )
|
||||
val[k] = k -- XXX: title/description would be nice
|
||||
elseif v[ref[3]] then
|
||||
table.insert( val, v[ref[3]] )
|
||||
val[v[ref[3]]] = v[ref[3]] -- XXX: dito
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue