mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Side reports weren't working on initial opening of the side tab
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63804 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1e578a32cb
commit
e6815f2156
@ -722,8 +722,8 @@ HTML;
|
||||
*/
|
||||
function sidereport() {
|
||||
$reportClass = $this->urlParams['ID'];
|
||||
$report = new $reportClass();
|
||||
return $report->getHTML();
|
||||
$report = ClassInfo::exists($reportClass) ? new $reportClass() : false;
|
||||
return $report ? $report->getHTML() : false;
|
||||
}
|
||||
/**
|
||||
* Get the versions of the current page
|
||||
|
Loading…
Reference in New Issue
Block a user