From b980fcb416238811269b6efe6d86c8d49f86ffd2 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 28 Mar 2008 11:31:19 +0000 Subject: [PATCH] "recipient" variable is never used. Set the value to "candidate_list" instead. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20191 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Alarm.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/product/ERP5/Document/Alarm.py b/product/ERP5/Document/Alarm.py index ba1a3acc36..64e80b431b 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: -- 2.30.9