Fix 'is not' search not working for keywords containing more than one word
This commit is contained in:
parent
9320116290
commit
9625a0a6a7
1 changed files with 2 additions and 1 deletions
|
|
@ -302,7 +302,8 @@ class AdvancedSearchQueryTerm {
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return "(" .$value . " OR " . str_replace('"', "", trim($value)) . ")";
|
$isNot = $this->getInclude() ? "" : "!";
|
||||||
|
return $isNot . "(" .$value . " OR " . str_replace('"', "", trim($value)) . ")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$this->getInclude()) {
|
if (!$this->getInclude()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue