Commit 05b1457f authored by Jérome Perrin's avatar Jérome Perrin

fixup! Mail Message: prevent sending email twice in case of conflict errors

parent ee5f212f
......@@ -84,7 +84,7 @@ mail_message = portal.Base_createMailMessageAsString(from_url,\n
if not event.hasData() and len(event.getDestinationList()) > 1:\n
if not event.hasData() and len(event.getDestinationList()) == 1:\n
# Store the content of the email as data, so that we can keep a reference to\n
# the email that was actually sent.\n
# We do not store when there is more than one recipent.\n
\ No newline at end of file
......@@ -1116,6 +1116,7 @@ class TestCRMMailSend(BaseTestCRM):
# The getTextContent() gets the content from the file data instead the
# Attribute text_content.
self.assertEqual(event.text_content, text_content)
text_content_from_data = '<html><body>Hello<br />World</body></html>'
self.assertEqual(event.getTextContent(), text_content_from_data)
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