mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: 'Relevance' column now quoted
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@113596 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
92c7419767
commit
ea631824e0
@ -126,7 +126,7 @@ class SearchForm extends Form {
|
||||
$start = isset($_GET['start']) ? (int)$_GET['start'] : 0;
|
||||
|
||||
if(strpos($keywords, '"') !== false || strpos($keywords, '+') !== false || strpos($keywords, '-') !== false || strpos($keywords, '*') !== false) {
|
||||
$results = DB::getConn()->searchEngine($this->classesToSearch, $keywords, $start, $pageLength, "Relevance DESC", "", true);
|
||||
$results = DB::getConn()->searchEngine($this->classesToSearch, $keywords, $start, $pageLength, "\"Relevance\" DESC", "", true);
|
||||
} else {
|
||||
$results = DB::getConn()->searchEngine($this->classesToSearch, $keywords, $start, $pageLength);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user