N°1910 - iTop - Search on Text contains "_" not working - move correction in other place

This commit is contained in:
acognet
2020-05-12 14:47:41 +02:00
parent a81950571a
commit 873d109b98
2 changed files with 5 additions and 3 deletions

View File

@@ -568,7 +568,6 @@ try
$sFullText = trim($aMatches[2]);
}
}
$sFullText = str_replace('_', '\_', $sFullText);
if (preg_match('/^"(.*)"$/', $sFullText, $aMatches))
{
// The text is surrounded by double-quotes, remove the quotes and treat it as one single expression
@@ -600,7 +599,7 @@ try
break;
}
$sFullText = implode(' ', $aFullTextNeedles);
$sFullText = str_replace('\_', '_', $sFullText);
// Sanity check of the accelerators
/** @var array $aAccelerators */
$aAccelerators = MetaModel::GetConfig()->Get('full_text_accelerators');