2
0
forked from Wavyzz/dolibarr

Fix : MAIN_SEARCH_PRODUCT_BY_FOURN_REF search critera (#33550)

This commit is contained in:
John BOTELLA
2025-03-20 18:32:49 +01:00
committed by GitHub
parent f7c9d4ecfc
commit 92baf3faa9

View File

@@ -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 .= ")";