Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More graceful handling of missing GET data in ModelAdmin

See #253
  • Loading branch information...
commit 75e58c95083ed983d1b12e92ff34f4c11ee98879 1 parent 6eb597a
@chillu chillu authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 code/ModelAdmin.php
View
6 code/ModelAdmin.php
@@ -696,7 +696,11 @@ function getResultColumns($searchCriteria, $selectedOnly = true) {
$summaryFields = $this->columnsAvailable();
- if($selectedOnly && isset($searchCriteria['ResultAssembly'])) {
+ if(
+ $selectedOnly
+ && isset($searchCriteria['ResultAssembly'])
+ && !empty($searchCriteria['ResultAssembly'])
+ ) {
$resultAssembly = $searchCriteria['ResultAssembly'];
if(!is_array($resultAssembly)) {
$explodedAssembly = split(' *, *', $resultAssembly);
Please sign in to comment.
Something went wrong with that request. Please try again.