N°3238 - Fix multi-words search in FilterBrick and ManageBrick

This commit is contained in:
Eric
2020-09-04 17:34:59 +02:00
parent 9694e9848d
commit dbada2f72a
6 changed files with 72 additions and 51 deletions

View File

@@ -576,7 +576,13 @@ try
else
{
// Split the text on the blanks and treat this as a search for <word1> AND <word2> AND <word3>
$aFullTextNeedles = explode(' ', $sFullText);
$aExplodedFullTextNeedles = explode(' ', $sFullText);
$aFullTextNeedles = [];
foreach ($aExplodedFullTextNeedles as $sValue) {
if (strlen($sValue) > 0) {
$aFullTextNeedles[] = $sValue;
}
}
}
// Check the needle length