Update cstate.class.php

This commit is contained in:
ptibogxiv 2020-09-14 10:46:19 +02:00 committed by GitHub
parent 557a6863ba
commit e98ae029e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);