diff --git a/admin/code/ModelAdmin.php b/admin/code/ModelAdmin.php index 2ea32a637..01a7c4491 100644 --- a/admin/code/ModelAdmin.php +++ b/admin/code/ModelAdmin.php @@ -210,6 +210,11 @@ abstract class ModelAdmin extends LeftAndMain { public function getList() { $context = $this->getSearchContext(); $params = $this->request->requestVar('q'); + + if(is_array($params)) { + $params = array_map('trim', $params); + } + $list = $context->getResults($params); $this->extend('updateList', $list);