subscription never filled with "yes"

This commit is contained in:
BENKE Charlie 2016-11-11 12:57:59 +01:00 committed by GitHub
parent b20c4bdfe4
commit 448cd8c38a

View File

@ -1151,7 +1151,7 @@ class Adherent extends CommonObject
$this->typeid = $obj->fk_adherent_type; $this->typeid = $obj->fk_adherent_type;
$this->type = $obj->type; $this->type = $obj->type;
$this->need_subscription = ($obj->subscription=='yes'?1:0); $this->need_subscription = $obj->subscription;
$this->user_id = $obj->user_id; $this->user_id = $obj->user_id;
$this->user_login = $obj->user_login; $this->user_login = $obj->user_login;