Update cstate.class.php
This commit is contained in:
parent
557a6863ba
commit
e98ae029e3
@ -50,7 +50,7 @@ class Cstate // extends CommonObject
|
||||
public $id;
|
||||
|
||||
public $code_departement;
|
||||
|
||||
public $code;
|
||||
/**
|
||||
* @var string
|
||||
* @deprecated
|
||||
@ -167,8 +167,10 @@ class Cstate // extends CommonObject
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
|
||||
$this->id = $obj->rowid;
|
||||
$this->code_departement = $obj->code_departement;
|
||||
$this->nom = $obj->nom;
|
||||
$this->code_departement = $obj->code_departement; //deprecated
|
||||
$this->code = $obj->code_departement;
|
||||
$this->nom = $obj->nom; //deprecated
|
||||
$this->name = $obj->nom;
|
||||
$this->active = $obj->active;
|
||||
}
|
||||
$this->db->free($resql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user