mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #111 from creative-commoners/pulls/4.2/allow-post-vars
FIX Use requestVar() to include post vars as well as get vars
This commit is contained in:
commit
62b3f0c74d
@ -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') ?: $request->getVar('filters') ?: [];
|
||||
$params = $request->param('filters') ?: $request->requestVar('filters') ?: [];
|
||||
}
|
||||
$items = $this->sourceRecords($params, null, null);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user