From 69e0d00fd1325fd82abf9c3a0dd1e25aeb29ace1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 27 Feb 2006 19:38:45 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20le=20pays=20n'=E9tait=20pas=20sauvegard?= =?UTF-8?q?=E9,=20ni=20affich=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/stock/entrepot.class.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/htdocs/product/stock/entrepot.class.php b/htdocs/product/stock/entrepot.class.php index f87b61d06fb..4227b5fd6c9 100644 --- a/htdocs/product/stock/entrepot.class.php +++ b/htdocs/product/stock/entrepot.class.php @@ -175,6 +175,21 @@ class Entrepot $this->cp = $obj->cp; $this->ville = $obj->ville; $this->pays_id = $obj->fk_pays; + + if ($soc->pays_id) + { + $sql = "SELECT libelle from ".MAIN_DB_PREFIX."c_pays where rowid = ".$this->pays_id; + $resql=$db->query($sql); + if ($resql) + { + $obj = $db->fetch_object($resql); + } + else + { + dolibarr_print_error($db); + } + $this->pays=$obj->libelle; + } $this->db->free($result); return 1;