Commit 5b530aa1 authored by Romain Courteaud's avatar Romain Courteaud

email_to_address property does not exist on portal by default, so, keep

compatibility with existing site.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19221 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 17d959c4
...@@ -166,7 +166,8 @@ class NotificationTool(BaseTool): ...@@ -166,7 +166,8 @@ class NotificationTool(BaseTool):
# Default Values # Default Values
portal = self.getPortalObject() portal = self.getPortalObject()
default_from_email = portal.email_from_address default_from_email = portal.email_from_address
default_to_email = portal.email_to_address default_to_email = getattr(portal, 'email_to_address',
default_from_email)
# Change all strings to object values # Change all strings to object values
if isinstance(sender, basestring): if isinstance(sender, basestring):
......
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