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;