From b52203b4e0bf438b1a69fe98af216921d34c982e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 6 Feb 2023 00:05:06 +0100 Subject: [PATCH] Update peruser.php --- htdocs/comm/action/peruser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/action/peruser.php b/htdocs/comm/action/peruser.php index 9448ea0b77b..ba631ba8c59 100644 --- a/htdocs/comm/action/peruser.php +++ b/htdocs/comm/action/peruser.php @@ -917,7 +917,7 @@ while ($currentdaytoshow < $lastdaytoshow) { } if ($user->socid > 0) { // External users should see only contacts of their company - $sql .= " AND fk_soc = ".((int) $user->socid); + $sql .= " AND u.fk_soc = ".((int) $user->socid); } //print $sql;