BUGFIX: reapplied advanceReviewDate method in correct area.
This commit is contained in:
parent
5edb604acd
commit
d5e4c98671
|
@ -55,7 +55,6 @@ class ContentReviewEmails extends BuildTask
|
||||||
|
|
||||||
foreach ($pages as $page) {
|
foreach ($pages as $page) {
|
||||||
if (!$page->canBeReviewedBy()) {
|
if (!$page->canBeReviewedBy()) {
|
||||||
$page->advanceReviewDate();
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,6 +64,7 @@ class ContentReviewEmails extends BuildTask
|
||||||
// check log date vs NextReviewDate. If someone has left a content review
|
// check log date vs NextReviewDate. If someone has left a content review
|
||||||
// after the review date, then we don't need to notify anybody
|
// after the review date, then we don't need to notify anybody
|
||||||
if ($contentReviewLog && $contentReviewLog->Created >= $page->NextReviewDate) {
|
if ($contentReviewLog && $contentReviewLog->Created >= $page->NextReviewDate) {
|
||||||
|
$page->advanceReviewDate();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue