From b63600c392022bb8175b5d010acc319073735585 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 10 May 2016 22:24:40 +1200 Subject: [PATCH] Remove triple report titles --- code/Report.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/code/Report.php b/code/Report.php index 79995047..184291cc 100644 --- a/code/Report.php +++ b/code/Report.php @@ -219,10 +219,6 @@ class SS_Report extends ViewableData { */ public function getCMSFields() { $fields = new FieldList(); - - if($title = $this->title()) { - $fields->push(new LiteralField('ReportTitle', "

{$title}

")); - } if($description = $this->description()) { $fields->push(new LiteralField('ReportDescription', "

" . $description . "

")); @@ -270,7 +266,6 @@ class SS_Report extends ViewableData { $items = $this->sourceRecords($params, null, null); $gridFieldConfig = GridFieldConfig::create()->addComponents( - new GridFieldToolbarHeader(), new GridFieldSortableHeader(), new GridFieldDataColumns(), new GridFieldPaginator(), @@ -278,7 +273,7 @@ class SS_Report extends ViewableData { new GridFieldPrintButton('buttons-after-left'), new GridFieldExportButton('buttons-after-left') ); - $gridField = new GridField('Report',$this->title(), $items, $gridFieldConfig); + $gridField = new GridField('Report',null, $items, $gridFieldConfig); $columns = $gridField->getConfig()->getComponentByType('GridFieldDataColumns'); $displayFields = array(); $fieldCasting = array();