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