mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°1910 - iTop - Search on Text contains "_" not working
_ is a special caracter in mysql -> replace with \_
This commit is contained in:
@@ -123,6 +123,7 @@ class CriterionToOQL extends CriterionConversionAbstract
|
||||
{
|
||||
return "1";
|
||||
}
|
||||
$sValue = str_replace('_', '\_', $sValue);
|
||||
|
||||
return "({$sRef} LIKE '%{$sValue}%')";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user