From 0576a7a5cff9b6e559df2966473e90aad9b68f5e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 19 Sep 2007 14:06:56 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20suppression=20d'appel=20de=20champs=20in?= =?UTF-8?q?utilis=E9s=20et=20qui=20provoque=20un=20conflit=20avec=20le=20f?= =?UTF-8?q?onctionnement=20de=20base=20de=20donn=E9es=20diff=E9rentes=20de?= =?UTF-8?q?=20mysql,=20en=20effet=20la=20fonction=20GROUP=20BY=20doit=20?= =?UTF-8?q?=EAtre=20suivi=20de=20tous=20les=20champs=20qui=20sont=20appel?= =?UTF-8?q?=E9=20dans=20le=20select,=20voir=20le=20lien:=20http://sql.deve?= =?UTF-8?q?loppez.com/sqlaz/ensembles/#L1[1]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/commande/index.php | 1 - htdocs/fourn/index.php | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php index c05632a6715..415d4bee05a 100644 --- a/htdocs/fourn/commande/index.php +++ b/htdocs/fourn/commande/index.php @@ -48,7 +48,6 @@ print ''; print '
'; $sql = "SELECT count(cf.rowid), fk_statut,"; -$sql.= " cf.rowid,cf.ref"; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s,"; $sql.= " ".MAIN_DB_PREFIX."commande_fournisseur as cf"; $sql.= " WHERE cf.fk_soc = s.rowid "; diff --git a/htdocs/fourn/index.php b/htdocs/fourn/index.php index b1be1505c14..505a6d40896 100644 --- a/htdocs/fourn/index.php +++ b/htdocs/fourn/index.php @@ -111,8 +111,7 @@ else * */ $commande = new CommandeFournisseur($db); -$sql = "SELECT count(cf.rowid), fk_statut,"; -$sql.= " cf.rowid,cf.ref"; +$sql = "SELECT count(cf.rowid), fk_statut"; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s,"; $sql.= " ".MAIN_DB_PREFIX."commande_fournisseur as cf"; $sql.= " WHERE cf.fk_soc = s.rowid ";