From b579ff9cd81f0b140fa68f8c3ee2a03146738e7d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 31 Dec 2024 02:45:40 +0100 Subject: [PATCH] Debug v21 --- htdocs/societe/list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 70fe8a2f34f..ab2571bfcfb 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -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') {