mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-08-31 23:07:49 +02:00
BUGFIX: SiteTree#getCMSFields referenced $linkedPages even if $linkedPages wasnt set
This commit is contained in:
parent
f620f9b46c
commit
c3bf93468f
@ -1760,7 +1760,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
// Create a status message for multiple parents
|
||||
if($this->ID && is_numeric($this->ID)) {
|
||||
$linkedPages = $this->VirtualPages();
|
||||
}
|
||||
|
||||
$parentPageLinks = array();
|
||||
|
||||
@ -1791,6 +1790,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
$parentList
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if($this->HasBrokenLink || $this->HasBrokenFile) {
|
||||
$statusMessage[] = _t('SiteTree.HASBROKENLINKS', "This page has broken links.");
|
||||
|
Loading…
Reference in New Issue
Block a user