From 07d5bd143afb698c7974771eb59c0839e9ed3856 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 31 Aug 2018 11:26:53 +0200 Subject: [PATCH] Fix entity --- htdocs/societe/class/societe.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)