diff --git a/product/ERP5/Document/Alarm.py b/product/ERP5/Document/Alarm.py index ba1a3acc366ea22d228858d4d97bdca12b56aaa6..64e80b431b2dbcc6c0e1bc2452427cf357a92933 100644 --- a/product/ERP5/Document/Alarm.py +++ b/product/ERP5/Document/Alarm.py @@ -432,10 +432,8 @@ class Alarm(XMLObject, PeriodicityMixin): """ notification_tool = getToolByName(self, 'portal_notifications') candidate_list = self.getDestinationValueList() - if candidate_list: - recipient = candidate_list - else: - recipient = None + if not candidate_list: + candidate_list = None if self.sense(): prefix = 'ERROR' else: