Debug v21

This commit is contained in:
Laurent Destailleur 2024-12-31 02:45:40 +01:00
parent 2b41140c77
commit b579ff9cd8

View file

@ -420,7 +420,7 @@ if (empty($reshook)) {
$searchCategorySupplierOperator = 0;
$searchCategoryCustomerList = array();
$searchCategorySupplierList = array();
$search_sale = '';
$search_sale = array();
$search_barcode = "";
$search_customer_code = '';
$search_supplier_code = '';
@ -617,7 +617,7 @@ if (!$user->hasRight('fournisseur', 'lire')) {
// Force the sales representative if they don't have permissions
if (!$user->hasRight('societe', 'client', 'voir') && !$socid) {
$search_sale = $user->id;
$search_sale = array($user->id);
}
// Search on sale representative
if (!empty($search_sale) && $search_sale != '-1') {