mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #12 from silverstripe-labs/pulls/3.2/restore-deprecated-classes
Restore deprecated reports
This commit is contained in:
commit
1580db4a9d
@ -66,7 +66,13 @@ class SS_Report extends ViewableData {
|
||||
public static $excluded_reports = array(
|
||||
'SS_Report',
|
||||
'SS_ReportWrapper',
|
||||
'SideReportWrapper'
|
||||
'SideReportWrapper',
|
||||
'SideReport_RecentlyEdited', // @deprecated 3.2..4.0
|
||||
'SideReport_EmptyPages', // @deprecated 3.2..4.0
|
||||
'SideReport_BrokenVirtualPages', // @deprecated 3.2..4.0
|
||||
'SideReport_BrokenRedirectorPages', // @deprecated 3.2..4.0
|
||||
'SideReport_BrokenLinks', // @deprecated 3.2..4.0
|
||||
'SideReport_BrokenFiles' // @deprecated 3.2..4.0
|
||||
);
|
||||
|
||||
/**
|
||||
@ -105,7 +111,7 @@ class SS_Report extends ViewableData {
|
||||
*/
|
||||
public function sourceQuery($params) {
|
||||
if($this->hasMethod('sourceRecords')) {
|
||||
return $this->sourceRecords()->dataQuery();
|
||||
return $this->sourceRecords($params, null, null)->dataQuery();
|
||||
} else {
|
||||
user_error("Please override sourceQuery()/sourceRecords() and columns() or, if necessary, override getReportField()", E_USER_ERROR);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user