[gen] Bugfix in Ref.getIndexedValue.
This commit is contained in:
parent
4c6c72935a
commit
89c961c5c5
|
@ -1993,10 +1993,16 @@ class Ref(Type):
|
|||
if res:
|
||||
# The index does not like persistent lists.
|
||||
res = list(res)
|
||||
else:
|
||||
# Ugly catalog: if I return an empty list, the previous value
|
||||
# is kept.
|
||||
res.append('')
|
||||
return res
|
||||
else:
|
||||
# For the global search: return linked objects' titles.
|
||||
return [o.title for o in self.getValue(type='objects')]
|
||||
res = [o.title for o in self.getValue(type='objects')]
|
||||
if not res: res.append('')
|
||||
return res
|
||||
|
||||
def validateValue(self, obj, value):
|
||||
if not self.link: return None
|
||||
|
|
Loading…
Reference in a new issue