mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
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:
parent
2ff2d28841
commit
a17feb75fa
@ -671,7 +671,9 @@ JS;
|
|||||||
function ReportSelector() {
|
function ReportSelector() {
|
||||||
// $options[""] = _t('CMSMain.CHOOSEREPORT',"(Choose a report)");
|
// $options[""] = _t('CMSMain.CHOOSEREPORT',"(Choose a report)");
|
||||||
foreach($this->SideReports() as $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();
|
$finalOptions = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user