fix: le pays n'tait pas sauvegard, ni affich

This commit is contained in:
Regis Houssin 2006-02-27 19:38:45 +00:00
parent 69e0d00fd1
commit 4a073ae76b
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -211,7 +211,7 @@ else
print '<td width="25%">'.$langs->trans('Town').'</td><td width="25%">'.$entrepot->ville.'</td></tr>';
print '<tr><td>'.$langs->trans('Country').'</td><td colspan="3">';
print $entrepot->pays_id;
print $entrepot->pays;
print '</td></tr>';
print '<tr><td width="20%">'.$langs->trans("Status").'</td><td colspan="3">'.$entrepot->statuts[$entrepot->statut].'</td></tr>';