2
0
forked from Wavyzz/dolibarr

FIX natural search double quote

This commit is contained in:
alexis Algoud
2018-03-07 11:42:47 +01:00
parent f9f37c52de
commit cb27eb98e1

View File

@@ -6276,6 +6276,8 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0)
$i3 = 0;
foreach($tmpcrits as $tmpcrit)
{
if(empty($tmpcrit)) continue;
$newres .= (($i2 > 0 || $i3 > 0) ? ' OR ' : '');
if (preg_match('/\.(id|rowid)$/', $field)) // Special cas for rowid that is sometimes a ref so used as a search field