Commit 3df9538e authored by Romain Courteaud's avatar Romain Courteaud

Reduce number of JOIN

parent 21e24f73
......@@ -83,8 +83,8 @@ class AcknowledgeableMixin:
person_value = self.ERP5Site_getAuthenticatedMemberPersonValue(
user_name=user_name)
if len(self.portal_catalog(portal_type='Acknowledgement',
causality_relative_url=self.getRelativeUrl(),
destination_relative_url=person_value.getRelativeUrl())) > 0:
default_causality_uid=self.getUid(),
default_destination_uid=person_value.getUid())) > 0:
result = True
return result
......
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