BUGFIX: Use SSReport::description() (by sminnee, merged from r100009)

This commit is contained in:
Sam Minnee 2011-09-22 18:07:45 +02:00 committed by Ingo Schommer
parent f7d322a004
commit 32ab772615

View File

@ -175,8 +175,8 @@ class SS_Report extends ViewableData {
)
);
if($this->description) $fields->push(
new LiteralField('ReportDescription', "<p>{$this->description}</p>"));
if($this->description()) $fields->push(
new LiteralField('ReportDescription', "<p>" . $this->description() . "</p>"));
// 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() {