Merge pull request #107 from creative-commoners/pulls/4.2/fix-getvar

FIX Filter var can be returned correctly from get variables as a fallback
This commit is contained in:
Aaron Carlino 2018-08-20 12:21:47 +12:00 committed by GitHub
commit 9e4be5b4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,7 +349,7 @@ class Report extends ViewableData
if (Injector::inst()->has(HTTPRequest::class)) {
/** @var HTTPRequest $request */
$request = Injector::inst()->get(HTTPRequest::class);
$params = $request->param('filters') ?: [];
$params = $request->param('filters') ?: $request->getVar('filters') ?: [];
}
$items = $this->sourceRecords($params, null, null);