Fix entity

This commit is contained in:
Laurent Destailleur 2018-08-31 11:26:53 +02:00
parent 46fe19bed5
commit 07d5bd143a

View File

@ -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)