mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
adding count to reports
adds a count for each report.
This commit is contained in:
parent
c736906016
commit
78cebe8723
@ -165,9 +165,9 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
'title' => _t('ReportAdmin.ReportTitle', 'Title'),
|
'title' => _t('ReportAdmin.ReportTitle', 'Title'),
|
||||||
));
|
));
|
||||||
|
|
||||||
$columns->setFieldFormatting(array(
|
$columns->setFieldFormatting(array(
|
||||||
'title' => '<a href=\"$Link\" class=\"cms-panel-link\">$value</a>'
|
'title' => '<a href=\"$Link\" class=\"cms-panel-link\">$value ($Count)</a>'
|
||||||
));
|
));
|
||||||
$gridField->addExtraClass('all-reports-gridfield');
|
$gridField->addExtraClass('all-reports-gridfield');
|
||||||
$fields->push($gridField);
|
$fields->push($gridField);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user