Commit 831cdf0a authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[fti] fix name conflict introduced by the new IFTIAdapter

parent 8dfb1726526b
......@@ -131,11 +131,11 @@ class IFTIndexableAdapter(EntityAdapter):
words += tokenize(value)
for rschema, role in entity.e_schema.fulltext_relations():
if role == 'subject':
for entity in getattr(entity, rschema.type):
words += entity.cw_adapt_to('IFTIndexable').get_words()
for entity_ in getattr(entity, rschema.type):
words += entity_.cw_adapt_to('IFTIndexable').get_words()
else: # if role == 'object':
for entity in getattr(entity, 'reverse_%s' % rschema.type):
words += entity.cw_adapt_to('IFTIndexable').get_words()
for entity_ in getattr(entity, 'reverse_%s' % rschema.type):
words += entity_.cw_adapt_to('IFTIndexable').get_words()
return words
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment