Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into 12.0
Conflicts: htdocs/core/tpl/extrafields_list_search_sql.tpl.php
This commit is contained in:
commit
eba55d0cf2
@ -42,7 +42,7 @@ if (!empty($extrafieldsobjectkey) && !empty($search_array_options) && is_array($
|
|||||||
if (in_array($typ, array('chkbxlst', 'checkbox'))) $mode_search = 4; // Search on a multiselect field with sql type = text
|
if (in_array($typ, array('chkbxlst', 'checkbox'))) $mode_search = 4; // Search on a multiselect field with sql type = text
|
||||||
if (is_array($crit)) $crit = implode(' ', $crit); // natural_search() expects a string
|
if (is_array($crit)) $crit = implode(' ', $crit); // natural_search() expects a string
|
||||||
elseif ($typ === 'select' and is_string($crit) and strpos($crit, ' ') === false) {
|
elseif ($typ === 'select' and is_string($crit) and strpos($crit, ' ') === false) {
|
||||||
$sql .= ' AND ('.$extrafieldsobjectprefix.$tmpkey.' = "'.$db->escape($crit).'")';
|
$sql .= " AND (".$extrafieldsobjectprefix.$tmpkey." = '".$db->escape($crit)."')";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$sql .= natural_search($extrafieldsobjectprefix.$tmpkey, $crit, $mode_search);
|
$sql .= natural_search($extrafieldsobjectprefix.$tmpkey, $crit, $mode_search);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user