mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°3238 - Fix multi-words search in FilterBrick and ManageBrick
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user