Merge pull request #5974 from defrance/patch-41

FIX : subscription never filled with "yes"
This commit is contained in:
Laurent Destailleur 2016-11-11 14:25:44 +01:00 committed by GitHub
commit e82dadedd4

View File

@ -1146,12 +1146,12 @@ class Adherent extends CommonObject
$this->birth = $this->db->jdate($obj->birthday); $this->birth = $this->db->jdate($obj->birthday);
$this->note_private = $obj->note_private; $this->note_private = $obj->note_private;
$this->note_public = $obj->note_public; $this->note_public = $obj->note_public;
$this->morphy = $obj->morphy; $this->morphy = $obj->morphy;
$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;