Commit b298ba10 authored by Jérome Perrin's avatar Jérome Perrin

fix from_url missing

parent 1f1e8ed3
......@@ -91,8 +91,9 @@ if download or not use_activity:\n
# From\n
if from_url is None:\n
sender = context.getSourceValue()\n
if sender is not None:\n
from_url = formataddr((sender.getTitle(), sender.getDefaultEmailText()))\n
if not from_url:\n
else:\n
from_url = portal.portal_preferences.getPreferredEventSenderEmail()\n
if not from_url:\n
raise ValueError(\'Preferred Event Sender Email not configured\')\n
......
1059
\ No newline at end of file
1062
\ No newline at end of file
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