From 4a073ae76b213146e905eb2539c82c2b0942426c 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 | 2 +- htdocs/product/stock/fiche.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stock/entrepot.class.php b/htdocs/product/stock/entrepot.class.php index 4227b5fd6c9..7a28de60a8b 100644 --- a/htdocs/product/stock/entrepot.class.php +++ b/htdocs/product/stock/entrepot.class.php @@ -176,7 +176,7 @@ class Entrepot $this->ville = $obj->ville; $this->pays_id = $obj->fk_pays; - if ($soc->pays_id) + if ($this->pays_id) { $sql = "SELECT libelle from ".MAIN_DB_PREFIX."c_pays where rowid = ".$this->pays_id; $resql=$db->query($sql); diff --git a/htdocs/product/stock/fiche.php b/htdocs/product/stock/fiche.php index 1a7ac413f47..2dea1d28934 100644 --- a/htdocs/product/stock/fiche.php +++ b/htdocs/product/stock/fiche.php @@ -211,7 +211,7 @@ else print ''.$langs->trans('Town').''.$entrepot->ville.''; print ''.$langs->trans('Country').''; - print $entrepot->pays_id; + print $entrepot->pays; print ''; print ''.$langs->trans("Status").''.$entrepot->statuts[$entrepot->statut].'';