BUGFIX: Fixed side report seelctor

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98226 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-02-04 05:31:25 +00:00
parent 2ff2d28841
commit a17feb75fa

View File

@ -671,7 +671,9 @@ JS;
function ReportSelector() {
// $options[""] = _t('CMSMain.CHOOSEREPORT',"(Choose a report)");
foreach($this->SideReports() as $report) {
if($report->canView()) $options[$report->ID()] = $report->title();
if($report->canView()) {
$options[$report->group()][$report->sort()][get_class($report)] = $report->title();
}
}
$finalOptions = array();