From 32b915396a0dae0b7e1f1e2042557aefd0754d55 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 9 May 2006 19:08:35 +0000 Subject: [PATCH] bugfix --- htdocs/commande/commande.class.php | 1 + htdocs/propal.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 92883da2afe..03aaa183952 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -665,6 +665,7 @@ class Commande $this->ref = $obj->ref; $this->ref_client = $obj->ref_client; $this->soc_id = $obj->fk_soc; + $this->socidp = $obj->fk_soc; $this->statut = $obj->fk_statut; $this->user_author_id = $obj->fk_user_author; $this->total_ht = $obj->total_ht; diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 83b4811884e..02939442875 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -342,7 +342,7 @@ class Propal function fetch_client() { $client = new Societe($this->db); - $client->fetch($this->socidp); + $client->fetch($this->id); $this->client = $client; }