diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php index 3899a86c202..991bf68b12c 100644 --- a/htdocs/projet/index.php +++ b/htdocs/projet/index.php @@ -64,7 +64,7 @@ $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."projet_task as t ON p.rowid = t.fk_projet"; //$sql.= " WHERE t.fk_projet = p.rowid"; if ($socidp) { - $sql .= " AND s.idp = $socidp"; + $sql .= " AND p.fk_soc = ".$socidp; } $sql.= " GROUP BY p.rowid";