Skip to content
Snippets Groups Projects
Commit a9a0b699f3da authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

attr indexation should not depend on its presence in cw_attr_cache

For optimization sake, just make sure the original rset
fetches everyting or use complete=True but relying on
cw_attr_cache will cause very obscure bugs

closes #17079907
parent 4cb5b3c2a4b3
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,7 @@
'cwuri': entity.cwuri,
}
for attr in self.fulltext_indexable_attributes:
if attr in entity.cw_attr_cache:
data[attr] = entity.cw_attr_cache[attr]
data[attr] = getattr(entity, attr)
# TODO take a look at what's in entity.cw_relation_cache
return data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment