mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
BUGFIX: Error trying to OwnerGroups() method on boolean value
This issue occurs when a page has "Inherit from parent page" for content review option and a review date, and its parent has "Disable content review" for content review option.
This commit is contained in:
parent
cf35e056b6
commit
68b1616d22
@ -154,7 +154,7 @@ class PagesWithoutReviewScheduleReport extends Report
|
|||||||
|
|
||||||
$options = $record->getOptions();
|
$options = $record->getOptions();
|
||||||
|
|
||||||
if ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
|
if ($options && $options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user