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
|
||||
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) . "%'";
|
||||
}
|
||||
$sql .= ")";
|
||||
|
||||
Reference in New Issue
Block a user