mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
MINOR fix failing tests (from r90509)
This commit is contained in:
parent
d2da1fe03e
commit
3bdaa1404c
@ -79,7 +79,7 @@ class SubsitesVirtualPage extends VirtualPage {
|
||||
function syncLinkTracking() {
|
||||
$oldState = Subsite::$disable_subsite_filter;
|
||||
Subsite::$disable_subsite_filter = true;
|
||||
$this->HasBrokenLink = DataObject::get_by_id('SiteTree', $this->CopyContentFromID) ? false : true;
|
||||
if ($this->CopyContentFromID) $this->HasBrokenLink = DataObject::get_by_id('SiteTree', $this->CopyContentFromID) ? false : true;
|
||||
Subsite::$disable_subsite_filter = $oldState;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user