mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
FIX Filter var can be returned correctly from get variables as a fallback
This commit is contained in:
parent
75dfeb2b47
commit
e1296d4813
@ -349,7 +349,7 @@ class Report extends ViewableData
|
|||||||
if (Injector::inst()->has(HTTPRequest::class)) {
|
if (Injector::inst()->has(HTTPRequest::class)) {
|
||||||
/** @var HTTPRequest $request */
|
/** @var HTTPRequest $request */
|
||||||
$request = Injector::inst()->get(HTTPRequest::class);
|
$request = Injector::inst()->get(HTTPRequest::class);
|
||||||
$params = $request->param('filters') ?: [];
|
$params = $request->param('filters') ?: $request->getVar('filters') ?: [];
|
||||||
}
|
}
|
||||||
$items = $this->sourceRecords($params, null, null);
|
$items = $this->sourceRecords($params, null, null);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user