From b5c424d6b19d0215db0a27f0b5f8251fea2d4332 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 19 Jan 2012 22:00:44 +0100 Subject: [PATCH] Fix: State was not loaded --- htdocs/societe/class/societe.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index c48f78f897b..9c0aa56d90b 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -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);