forked from Wavyzz/dolibarr
NEW add home box mrp (#33549)
* add box Mo * tests ok * comparaison dates * before Wysy * after wysy * Update mo.class.php * Update mo.class.php * Update conf.class.php * retour PR * add parenthesis * Update mo_list.php --------- Co-authored-by: x <x@x.x> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -12203,7 +12203,6 @@ function natural_search($fields, $value, $mode = 0, $nofirstand = 0)
|
||||
if (!is_array($fields)) {
|
||||
$fields = array($fields);
|
||||
}
|
||||
|
||||
$i1 = 0; // count the nb of "and" criteria added (all fields / criteria)
|
||||
foreach ($crits as $crit) { // Loop on each AND criteria
|
||||
$crit = trim($crit);
|
||||
@@ -12341,7 +12340,6 @@ function natural_search($fields, $value, $mode = 0, $nofirstand = 0)
|
||||
$i2++; // a criteria for 1 more field was added to string
|
||||
}
|
||||
}
|
||||
|
||||
if ($newres) {
|
||||
$res = $res.($res ? ' AND ' : '').($i2 > 1 ? '(' : '').$newres.($i2 > 1 ? ')' : '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user