Skip to content
Snippets Groups Projects
Commit df9121d6 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX Accept spaces around the | criteria

parent 1b3af1df
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment