forked from Wavyzz/dolibarr
FIX Accept spaces around the | criteria
This commit is contained in:
@@ -5737,7 +5737,9 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0)
|
||||
else // $mode=0
|
||||
{
|
||||
$textcrit = '';
|
||||
$tmpcrits = explode('|',$crit);
|
||||
$tmpcrit = preg_replace('/\s+|/','|',$tmpcrit);
|
||||
$tmpcrit = preg_replace('/|\s+/','|',$tmpcrit);
|
||||
$tmpcrits = explode('|',$tmpcrit);
|
||||
$i3 = 0;
|
||||
foreach($tmpcrits as $tmpcrit)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user