Merge pull request #8290 from atm-alexis/6.0_fix_natural_search_double_space

FIX natural search double quote
This commit is contained in:
Laurent Destailleur 2018-03-07 12:56:37 +01:00 committed by GitHub
commit 3284ebdcf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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