From 23df65ec5aed21d7f009bf7ae2580af6a1121007 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 9 Aug 2008 06:53:26 +0000 Subject: [PATCH] (merged from branches/roa. use "svn log -c -g " for detailed commit message) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60234 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/ModelAdmin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/ModelAdmin.php b/code/ModelAdmin.php index d33edcb0..43b3b47a 100644 --- a/code/ModelAdmin.php +++ b/code/ModelAdmin.php @@ -352,9 +352,8 @@ class ModelAdmin_CollectionController extends Controller { */ function search($request) { $model = singleton($this->modelClass); - $searchKeys = array_intersect_key($request->getVars(), $model->searchable_fields()); $context = $model->getDefaultSearchContext(); - $results = $context->getResults($searchKeys, null, array('start'=>0, 'limit'=>$this->parentController->stat('page_length'))); + $results = $context->getResults($request->getVars(), null, array('start'=>0, 'limit'=>$this->parentController->stat('page_length'))); $summaryFields = $model->summaryFields(); $tf = new TableListField(