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

forge: update code relying on incorrect default value of person.getTitle

parent 4afb8e21
......@@ -9,7 +9,7 @@ if subject is None:
if from_url is None:
sender = context.getSourceValue()
if sender is not None:
if sender.getTitle():
if sender.hasTitle():
from_url = '"%s" <%s>' % (sender.getTitle(),
sender.getDefaultEmailText())
else:
......@@ -32,7 +32,7 @@ if to_url is None:
for recipient in recipient_list:
email = recipient.getDefaultEmailText()
if email:
if recipient.getTitle():
if recipient.hasTitle():
to_url_list.append('"%s" <%s>' % (recipient.getTitle(), email))
else:
to_url_list.append(email)
......
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