mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
BUGFIX: Make SQL field reference unambiguous
This commit is contained in:
parent
9165bd4f4f
commit
8a98279b47
@ -15,7 +15,7 @@ class ContentReviewEmails extends DailyTask {
|
|||||||
Subsite::$disable_subsite_filter = true;
|
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()) {
|
if ($pages && $pages->Count()) {
|
||||||
foreach($pages as $page) {
|
foreach($pages as $page) {
|
||||||
$owner = $page->Owner();
|
$owner = $page->Owner();
|
||||||
|
Loading…
Reference in New Issue
Block a user