From dc8616a110c31b8a2fcae9401a5e6776d96cffda Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 7 Nov 2023 11:12:44 +0100 Subject: [PATCH] Fix multicompany --- htdocs/salaries/list.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/salaries/list.php b/htdocs/salaries/list.php index 2adf871244c25..74c5705ea085c 100644 --- a/htdocs/salaries/list.php +++ b/htdocs/salaries/list.php @@ -256,10 +256,11 @@ //$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."payment_salary as ps ON ps.fk_salary = s.rowid, "; $sql .= " ".MAIN_DB_PREFIX."user as u"; $sql .= " WHERE u.rowid = s.fk_user"; -$sql .= " AND s.entity IN (".getEntity('payment_salaries').")"; +$sql .= " AND s.entity IN (".getEntity('salaries').")"; if (!$user->hasRight('salaries', 'readall')) { $sql .= " AND s.fk_user IN (".$db->sanitize(join(',', $childids)).")"; } +//print $sql; // Search criteria if ($search_ref) {