Fix: State was not loaded

This commit is contained in:
Laurent Destailleur 2012-01-19 22:00:44 +01:00
parent 23a87172fe
commit b5c424d6b1

View File

@ -686,7 +686,10 @@ class Societe extends CommonObject
$this->departement_id = $obj->fk_departement; // TODO obsolete
$this->state_id = $obj->fk_departement;
$this->departement = $obj->fk_departement?$obj->departement:'';
$this->departement_code = $obj->fk_departement?$obj->departement_code:'';
$this->state_code = $obj->fk_departement?$obj->departement_code:'';
$this->departement = $obj->fk_departement?$obj->departement:'';
$this->state = $obj->fk_departement?$obj->departement:'';
$transcode=$langs->trans('StatusProspect'.$obj->fk_stcomm);
$libelle=($transcode!='StatusProspect'.$obj->fk_stcomm?$transcode:$obj->stcomm);