FIX : getEntity project and not projet

This commit is contained in:
gauthier 2018-06-27 17:13:50 +02:00
parent dab264c641
commit 86a58def3b

View File

@ -1750,7 +1750,7 @@ class Project extends CommonObject
$sql = "SELECT count(p.rowid) as nb";
$sql.= " FROM ".MAIN_DB_PREFIX."projet as p";
$sql.= " WHERE";
$sql.= " p.entity IN (".getEntity('projet').")";
$sql.= " p.entity IN (".getEntity('project').")";
if (! $user->rights->projet->all->lire)
{
$projectsListId = $this->getProjectsAuthorizedForUser($user,0,1);