From d5e4c9867179a8a4f63d5f299d34f664f72999b0 Mon Sep 17 00:00:00 2001 From: MasseyIsaako Date: Tue, 14 Aug 2018 15:32:04 +1200 Subject: [PATCH] BUGFIX: reapplied advanceReviewDate method in correct area. --- src/Tasks/ContentReviewEmails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tasks/ContentReviewEmails.php b/src/Tasks/ContentReviewEmails.php index 3097415..2a6e9ee 100644 --- a/src/Tasks/ContentReviewEmails.php +++ b/src/Tasks/ContentReviewEmails.php @@ -55,7 +55,6 @@ class ContentReviewEmails extends BuildTask foreach ($pages as $page) { if (!$page->canBeReviewedBy()) { - $page->advanceReviewDate(); continue; } @@ -65,6 +64,7 @@ class ContentReviewEmails extends BuildTask // check log date vs NextReviewDate. If someone has left a content review // after the review date, then we don't need to notify anybody if ($contentReviewLog && $contentReviewLog->Created >= $page->NextReviewDate) { + $page->advanceReviewDate(); continue; }