diff --git a/htdocs/api/class/api_setup.class.php b/htdocs/api/class/api_setup.class.php index e7ae6a39528..1bb3995954e 100644 --- a/htdocs/api/class/api_setup.class.php +++ b/htdocs/api/class/api_setup.class.php @@ -169,7 +169,7 @@ class Setup extends DolibarrApi return $list; } - + /** * Get the list of states. * @@ -240,7 +240,7 @@ class Setup extends DolibarrApi return $list; } - + /** * Get state by ID. * @@ -397,7 +397,7 @@ class Setup extends DolibarrApi { return $this->_fetchCcountry('', '', $iso, $lang); } - + /** * Get state. * diff --git a/htdocs/core/class/cstate.class.php b/htdocs/core/class/cstate.class.php index c107601ba98..80c47591fbb 100644 --- a/htdocs/core/class/cstate.class.php +++ b/htdocs/core/class/cstate.class.php @@ -168,9 +168,9 @@ class Cstate // extends CommonObject $this->id = $obj->rowid; $this->code_departement = $obj->code_departement; //deprecated - $this->code = $obj->code_departement; + $this->code = $obj->code_departement; $this->nom = $obj->nom; //deprecated - $this->name = $obj->nom; + $this->name = $obj->nom; $this->active = $obj->active; } $this->db->free($resql);