This commit is contained in:
Regis Houssin 2006-06-01 16:20:35 +00:00
parent 677ef5c6e6
commit 8fd202371d

View File

@ -918,7 +918,8 @@ class Commande
* Propale associée * Propale associée
*/ */
$sql = 'SELECT cp.fk_propale'; $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->query($sql) )
{ {
if ($this->db->num_rows()) if ($this->db->num_rows())