From b54e5cd560f714dbac33477a2d27129a444484c9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 25 Sep 2005 22:28:25 +0000 Subject: [PATCH] Fix: requete incorrecte si socid != 0 --- htdocs/projet/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";