Commit 9d70abfb authored by Romain Courteaud's avatar Romain Courteaud

No need to get all events if one is enough.

parent 3df9538e
...@@ -84,7 +84,8 @@ class AcknowledgeableMixin: ...@@ -84,7 +84,8 @@ class AcknowledgeableMixin:
user_name=user_name) user_name=user_name)
if len(self.portal_catalog(portal_type='Acknowledgement', if len(self.portal_catalog(portal_type='Acknowledgement',
default_causality_uid=self.getUid(), default_causality_uid=self.getUid(),
default_destination_uid=person_value.getUid())) > 0: default_destination_uid=person_value.getUid(),
limit=1)) > 0:
result = True result = True
return result 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