From b26eea0e22657a955c7295fdd65a2dc220786ddd Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Sun, 22 Oct 2017 14:20:18 +0200 Subject: [PATCH] Fix bug: communications failed for EICs --- submissions/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/submissions/utils.py b/submissions/utils.py index b741e421a..90fad6bad 100644 --- a/submissions/utils.py +++ b/submissions/utils.py @@ -1137,19 +1137,19 @@ class SubmissionUtils(BaseMailUtil): recipient_greeting = ('Dear ' + cls.communication.submission.submitted_by.get_title_display() + ' ' + cls.communication.submission.submitted_by.user.last_name) - bcc_emails.append(cls.communication.submission.editor_in_charge) + bcc_emails.append(cls.communication.submission.editor_in_charge.user.email) bcc_emails.append('submissions@scipost.org') elif cls.communication.comtype in ['EtoR']: recipient_email.append(cls.communication.referee.user.email) recipient_greeting = ('Dear ' + cls.communication.referee.get_title_display() + ' ' + cls.communication.referee.user.last_name) - bcc_emails.append(cls.communication.submission.editor_in_charge) + bcc_emails.append(cls.communication.submission.editor_in_charge.user.email) bcc_emails.append('submissions@scipost.org') elif cls.communication.comtype in ['EtoS']: recipient_email.append('submissions@scipost.org') recipient_greeting = 'Dear Editorial Administrators' - bcc_emails.append(cls.communication.submission.editor_in_charge) + bcc_emails.append(cls.communication.submission.editor_in_charge.user.email) further_action_page = 'https://scipost.org/submissions/pool' email_text = (recipient_greeting + -- GitLab