diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 1cf2f33980e..acb33f83c26 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1351,7 +1351,7 @@ class Societe extends CommonObject // Generation requete recherche $sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."societe"; - $sql.= " WHERE entity IN (".getEntity('category').")"; + $sql.= " WHERE entity IN (".getEntity('societe').")"; if (! empty($type)) { if ($type == 1 || $type == 2)