From 32ab772615deec5605b292bc11f2d1873d59ccdd Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 22 Sep 2011 18:07:45 +0200 Subject: [PATCH] BUGFIX: Use SSReport::description() (by sminnee, merged from r100009) --- code/reports/Report.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/reports/Report.php b/code/reports/Report.php index 876f563b..ac2e02c0 100644 --- a/code/reports/Report.php +++ b/code/reports/Report.php @@ -175,8 +175,8 @@ class SS_Report extends ViewableData { ) ); - if($this->description) $fields->push( - new LiteralField('ReportDescription', "

{$this->description}

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

" . $this->description() . "

")); // Add search fields is available if($params = $this->parameterFields()) { @@ -508,7 +508,7 @@ abstract class SS_ReportWrapper extends SS_Report { } function description() { - return $this->baseReport->title(); + return $this->baseReport->description(); } function canView() {