fix: le pays n'était pas sauvegardé, ni affiché
This commit is contained in:
parent
904fac1d33
commit
69e0d00fd1
@ -175,6 +175,21 @@ class Entrepot
|
|||||||
$this->cp = $obj->cp;
|
$this->cp = $obj->cp;
|
||||||
$this->ville = $obj->ville;
|
$this->ville = $obj->ville;
|
||||||
$this->pays_id = $obj->fk_pays;
|
$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);
|
$this->db->free($result);
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user