Commit 0ea10845 authored by Romain Courteaud's avatar Romain Courteaud

Recipient parameter may be a Person object


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fb748bc7
......@@ -182,7 +182,7 @@ class NotificationTool(BaseTool):
email_from_address = default_email
# To is a list - let us find all members
if isinstance(recipient, basestring):
if not isinstance(recipient, (list, tuple)):
recipient = (recipient, )
# If no recipient is defined, just send an email to the
......
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