mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 00:53:00 +01:00
fix: le pays n'tait pas sauvegard
This commit is contained in:
@@ -125,7 +125,7 @@ class Entrepot
|
||||
$this->address=trim($this->address);
|
||||
$this->cp=trim($this->cp);
|
||||
$this->ville=trim($this->ville);
|
||||
$this->pays_id=trim($this->pays_id);
|
||||
$this->pays_id=trim($this->pays_id?$this->pays_id:0);
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."entrepot ";
|
||||
$sql .= " SET label = '" . $this->libelle ."'";
|
||||
@@ -135,7 +135,7 @@ class Entrepot
|
||||
$sql .= ",address = '" . $this->address ."'";
|
||||
$sql .= ",cp = '" . $this->cp ."'";
|
||||
$sql .= ",ville = '" . $this->ville ."'";
|
||||
$sql .= ",fk_pays = " . $this->pays_id?$this->pays_id:'0' ;
|
||||
$sql .= ",fk_pays = " . $this->pays_id;
|
||||
$sql .= " WHERE rowid = " . $id;
|
||||
|
||||
if ( $this->db->query($sql) )
|
||||
|
||||
@@ -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">';
|
||||
$entrepot->pays_id;
|
||||
print $entrepot->pays_id;
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td width="20%">'.$langs->trans("Status").'</td><td colspan="3">'.$entrepot->statuts[$entrepot->statut].'</td></tr>';
|
||||
|
||||
Reference in New Issue
Block a user