statut is not status in adherent class

This commit is contained in:
daraelmin 2021-04-28 17:29:52 +02:00 committed by GitHub
parent 75a8dc28ea
commit 6b3024b153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,7 +208,7 @@ class Adherent extends CommonObject
// -2:excluded, -1:draft, 0:resiliated, >=1:valided,payed // -2:excluded, -1:draft, 0:resiliated, >=1:valided,payed
// def in common object // def in common object
//public $status; public $statut = $this->status; // TODO modify to set statut as deprecated
/** /**
* @var string photo of member * @var string photo of member
@ -357,7 +357,8 @@ class Adherent extends CommonObject
public function __construct($db) public function __construct($db)
{ {
$this->db = $db; $this->db = $db;
$this->statut = self::STATUS_DRAFT; // shouldn't this be $status ? $this->statut = self::STATUS_DRAFT;
$this->status = $this->statut;
// l'adherent n'est pas public par defaut // l'adherent n'est pas public par defaut
$this->public = 0; $this->public = 0;
// les champs optionnels sont vides // les champs optionnels sont vides