diff --git a/code/ContentReviewEmails.php b/code/ContentReviewEmails.php index 000011c..0a517d5 100644 --- a/code/ContentReviewEmails.php +++ b/code/ContentReviewEmails.php @@ -15,7 +15,7 @@ class ContentReviewEmails extends DailyTask { Subsite::$disable_subsite_filter = true; } - $pages = DataObject::get('Page', "NextReviewDate = '".date('Y-m-d')."' AND OwnerID != 0"); + $pages = DataObject::get('Page', "SiteTree.NextReviewDate = '".date('Y-m-d')."' AND SiteTree.OwnerID != 0"); if ($pages && $pages->Count()) { foreach($pages as $page) { $owner = $page->Owner();