forked from Wavyzz/dolibarr
Fix : MAIN_SEARCH_PRODUCT_BY_FOURN_REF search critera (#33550)
This commit is contained in:
@@ -3089,7 +3089,7 @@ class Form
|
|||||||
|
|
||||||
// include search in supplier ref
|
// include search in supplier ref
|
||||||
if (getDolGlobalString('MAIN_SEARCH_PRODUCT_BY_FOURN_REF')) {
|
if (getDolGlobalString('MAIN_SEARCH_PRODUCT_BY_FOURN_REF')) {
|
||||||
$sqlSupplierSearch .= !empty($sqlSupplierSearch) ? ' OR ':'';
|
$sqlSupplierSearch .= !empty($sqlSupplierSearch) ? ' AND ':'';
|
||||||
$sqlSupplierSearch .= " pfp.ref_fourn LIKE '" . $this->db->escape($prefix . $crit) . "%'";
|
$sqlSupplierSearch .= " pfp.ref_fourn LIKE '" . $this->db->escape($prefix . $crit) . "%'";
|
||||||
}
|
}
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
|
|||||||
Reference in New Issue
Block a user