mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-09-30 05:09:15 +02:00
BUGFIX Don't show subsites drop down in ReportAdmin, as filtering works differently here (AIR-49)
This commit is contained in:
parent
ac2704b968
commit
1d1811b308
@ -62,6 +62,10 @@ class LeftAndMainSubsites extends Extension {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't show subsite list in reports section, it doesn't have
|
||||||
|
// any effect there - subsites are filtered through a custom dropdown there, see SubsiteReportWrapper
|
||||||
|
if($this->owner instanceof ReportAdmin) return false;
|
||||||
|
|
||||||
$list = $this->Subsites();
|
$list = $this->Subsites();
|
||||||
|
|
||||||
$currentSubsiteID = Subsite::currentSubsiteID();
|
$currentSubsiteID = Subsite::currentSubsiteID();
|
||||||
|
Loading…
Reference in New Issue
Block a user