From 2f2d0c72b14244dad45865efc00701b649c23341 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 18 Feb 2009 09:06:15 +0000 Subject: [PATCH] Removed unnecessary duplication of columns in SearchContext SELECT clause git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@72006 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- search/SearchContext.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/search/SearchContext.php b/search/SearchContext.php index 06a11bcce..e8fb86ff7 100644 --- a/search/SearchContext.php +++ b/search/SearchContext.php @@ -105,16 +105,12 @@ class SearchContext extends Object { public function getQuery($searchParams, $sort = false, $limit = false, $existingQuery = null) { $model = singleton($this->modelClass); - $fields = $this->applyBaseTableFields($model); - if($existingQuery) { $query = $existingQuery; } else { $query = $model->buildSQL(); } - $query->select = array_merge($query->select,$fields); - $SQL_limit = Convert::raw2sql($limit); $query->limit($SQL_limit);