From 680aac866b9aa8507ebfb5679c2f3b1cf68bd1b1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 2 Mar 2004 16:07:34 +0000 Subject: [PATCH] Ajout lien --- htdocs/comm/prospect/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/prospect/index.php b/htdocs/comm/prospect/index.php index 83507b091b3..30fc4c7b88f 100644 --- a/htdocs/comm/prospect/index.php +++ b/htdocs/comm/prospect/index.php @@ -69,9 +69,9 @@ if ($conf->propal->enabled) * */ -$sql = "SELECT count(*) as cc, st.libelle"; +$sql = "SELECT count(*) as cc, st.libelle, st.id"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."c_stcomm as st "; -$sql .= " WHERE s.fk_stcomm = st.id AND s.client=2 GROUP BY st.libelle"; +$sql .= " WHERE s.fk_stcomm = st.id AND s.client=2 GROUP BY st.libelle, st.id"; if ( $db->query($sql) ) { @@ -86,7 +86,7 @@ if ( $db->query($sql) ) { $obj = $db->fetch_object( $i); $var=!$var; - print "rowid."\">".$obj->libelle."".$obj->cc.""; + print "id."\">".$obj->libelle."".$obj->cc.""; $i++; } print "
";