Skip to content

Commit

Permalink
Fix an incorrect URL for draft submissions in email notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Feb 28, 2024
1 parent 59cc17a commit 15da2e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/Submissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ public function saveSubmission(ElementInterface $entry): bool
return false;
}

// Refresh reviews cache to get the updated copies for emails
$submission->clearReviews();

// Trigger notification to reviewer
if ($settings->reviewerNotifications) {
Workflow::$plugin->getEmails()->sendReviewerNotificationEmail($submission, $review, $entry);
Expand Down

0 comments on commit 15da2e1

Please sign in to comment.