Skip to content

Commit 391ae31

Browse files
committed
Fix emails not sending unless Reviewer Notifications is checked
1 parent 5d1a09e commit 391ae31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/Submissions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ public function saveSubmission($entry = null)
139139
// Trigger notification to reviewer
140140
if ($settings->reviewerNotifications) {
141141
$this->sendReviewerNotificationEmail($submission);
142+
} else if ($settings->publisherNotifications) {
143+
$this->sendPublisherNotificationEmail($submission);
142144
}
143145
}
144146

@@ -209,6 +211,8 @@ public function approveReview()
209211
// Trigger notification to editor
210212
if ($settings->reviewerNotifications) {
211213
$this->sendReviewerNotificationEmail($submission);
214+
} else if ($settings->editorNotifications) {
215+
$this->sendEditorNotificationEmail($submission);
212216
}
213217

214218
$session->setNotice(Craft::t('workflow', 'Submission approved.'));

0 commit comments

Comments
 (0)