From 59aad443531f5d4d877809c20d4bdd9ac3ceabc7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 25 May 2011 09:19:46 +0000 Subject: [PATCH] Fix: uniformize code --- htdocs/comm/propal/class/propal.class.php | 6 ++++-- htdocs/commande/class/commande.class.php | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 5c2a148838c..f9e3096e579 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -2479,8 +2479,10 @@ class PropaleLigne $this->special_code = $objp->special_code; $this->rang = $objp->rang; - $this->ref = $objp->product_ref; - $this->libelle = $objp->product_libelle; + $this->ref = $objp->product_ref; // deprecated + $this->product_ref = $objp->product_ref; + $this->libelle = $objp->product_libelle; // deprecated + $this->product_label = $objp->product_libelle; $this->product_desc = $objp->product_desc; $this->db->free($result); diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 10b63bd327f..e3eba2ab01f 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -2841,10 +2841,10 @@ class OrderLine $this->special_code = $objp->special_code; $this->rang = $objp->rang; - $this->ref = $objp->product_ref; // deprecated - $this->product_ref = $objp->product_ref; - $this->libelle = $objp->product_libelle; // deprecated - $this->product_label = $objp->product_libelle; + $this->ref = $objp->product_ref; // deprecated + $this->product_ref = $objp->product_ref; + $this->libelle = $objp->product_libelle; // deprecated + $this->product_label = $objp->product_libelle; $this->product_desc = $objp->product_desc; $this->date_start = $this->db->jdate($objp->date_start);