1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Fixed tag searches and added tag search regression test

Fixes #222
This commit is contained in:
Dan Brown
2016-11-12 13:21:16 +00:00
parent 672b15d36c
commit 600055bc73
3 changed files with 38 additions and 1 deletions

View File

@ -175,7 +175,8 @@ class Entity extends Ownable
}
}
$isFuzzy = count($exactTerms) === 0 || count($fuzzyTerms) > 0;
$isFuzzy = count($exactTerms) === 0 && count($fuzzyTerms) > 0;
// Perform fulltext search if relevant terms exist.
if ($isFuzzy) {