mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
More graceful handling of missing GET data in ModelAdmin
See https://github.com/silverstripe/silverstripe-cms/pull/253
This commit is contained in:
parent
6eb597a2d5
commit
75e58c9508
@ -696,7 +696,11 @@ class ModelAdmin_CollectionController extends Controller {
|
|||||||
|
|
||||||
$summaryFields = $this->columnsAvailable();
|
$summaryFields = $this->columnsAvailable();
|
||||||
|
|
||||||
if($selectedOnly && isset($searchCriteria['ResultAssembly'])) {
|
if(
|
||||||
|
$selectedOnly
|
||||||
|
&& isset($searchCriteria['ResultAssembly'])
|
||||||
|
&& !empty($searchCriteria['ResultAssembly'])
|
||||||
|
) {
|
||||||
$resultAssembly = $searchCriteria['ResultAssembly'];
|
$resultAssembly = $searchCriteria['ResultAssembly'];
|
||||||
if(!is_array($resultAssembly)) {
|
if(!is_array($resultAssembly)) {
|
||||||
$explodedAssembly = split(' *, *', $resultAssembly);
|
$explodedAssembly = split(' *, *', $resultAssembly);
|
||||||
|
Loading…
Reference in New Issue
Block a user