mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #62 from silverstripe-scienceninjas/master
BUGFIX: SiteTree#getCMSFields would only calculate local variable $linkedPages if ID was valid, but would then refer to that variable regardless
This commit is contained in:
commit
703ac7b47e
@ -1760,7 +1760,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
// Create a status message for multiple parents
|
// Create a status message for multiple parents
|
||||||
if($this->ID && is_numeric($this->ID)) {
|
if($this->ID && is_numeric($this->ID)) {
|
||||||
$linkedPages = $this->VirtualPages();
|
$linkedPages = $this->VirtualPages();
|
||||||
}
|
|
||||||
|
|
||||||
$parentPageLinks = array();
|
$parentPageLinks = array();
|
||||||
|
|
||||||
@ -1791,6 +1790,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
$parentList
|
$parentList
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($this->HasBrokenLink || $this->HasBrokenFile) {
|
if($this->HasBrokenLink || $this->HasBrokenFile) {
|
||||||
$statusMessage[] = _t('SiteTree.HASBROKENLINKS', "This page has broken links.");
|
$statusMessage[] = _t('SiteTree.HASBROKENLINKS', "This page has broken links.");
|
||||||
|
Loading…
Reference in New Issue
Block a user