From 8fd202371d410afcec27596c10436320f68158b7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 1 Jun 2006 16:20:35 +0000 Subject: [PATCH] bugfix --- htdocs/commande/commande.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 1038b3d568d..12292ce8a90 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -918,7 +918,8 @@ class Commande * Propale associée */ $sql = 'SELECT cp.fk_propale'; - $sql .= ' FROM '.MAIN_DB_PREFIX.'co_pr WHERE fk_commande = '.$this->id; + $sql .= ' FROM '.MAIN_DB_PREFIX.'co_pr as cp'; + $sql .= ' WHERE cp.fk_commande = '.$this->id; if ($this->db->query($sql) ) { if ($this->db->num_rows())