From 8d46f44e1f13c28d332e4c42a704cf9fd863dbd3 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 26 May 2011 12:19:21 +0000 Subject: [PATCH] Fix: uniformize code --- htdocs/comm/propal/class/propal.class.php | 8 ++++---- htdocs/commande/class/commande.class.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 1386a0afbcb..825dd16edec 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -1092,11 +1092,11 @@ class Propal extends CommonObject $line->fk_product = $objp->fk_product; - $this->ref = $objp->product_ref; // TODO deprecated - $this->product_ref = $objp->product_ref; - $this->libelle = $objp->product_label; // TODO deprecated + $line->ref = $objp->product_ref; // TODO deprecated + $line->product_ref = $objp->product_ref; + $line->libelle = $objp->product_label; // TODO deprecated $line->label = $objp->product_label; // TODO deprecated - $this->product_label = $objp->product_label; + $line->product_label = $objp->product_label; $line->product_desc = $objp->product_desc; // Description produit $line->fk_product_type = $objp->fk_product_type; diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 67f84445199..624bbc500fa 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1427,10 +1427,10 @@ class Commande extends CommonObject $line->special_code = $objp->special_code; $line->fk_parent_line = $objp->fk_parent_line; - $this->ref = $objp->product_ref; // TODO deprecated - $this->product_ref = $objp->product_ref; - $this->libelle = $objp->product_label; // TODO deprecated - $this->product_label = $objp->product_label; + $line->ref = $objp->product_ref; // TODO deprecated + $line->product_ref = $objp->product_ref; + $line->libelle = $objp->product_label; // TODO deprecated + $line->product_label = $objp->product_label; $line->product_desc = $objp->product_desc; // Description produit $line->fk_product_type = $objp->fk_product_type; // Produit ou service