From 11b3b94e6fbc1cc4a3aebb8590f73f3772f62593 Mon Sep 17 00:00:00 2001 From: Xebax Date: Tue, 30 Sep 2014 01:37:36 +0200 Subject: [PATCH 1/2] Fix bug #1604: When a member is created, the birthday is not recorded. --- htdocs/adherents/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php index 1c9de056acc..60b90a9cf31 100644 --- a/htdocs/adherents/card.php +++ b/htdocs/adherents/card.php @@ -460,7 +460,7 @@ if ($action == 'add' && $user->rights->adherent->creer) $object->email = $email; $object->login = $login; $object->pass = $pass; - $object->naiss = $birthdate; + $object->birth = $birthdate; $object->photo = $photo; $object->typeid = $typeid; //$object->note = $comment; @@ -883,7 +883,7 @@ else // Birthday print "".$langs->trans("Birthday")."\n"; - $form->select_date(($object->naiss ? $object->naiss : -1),'naiss','','',1,'formsoc'); + $form->select_date(($object->birth ? $object->birth : -1),'birth','','',1,'formsoc'); print "\n"; // Profil public From add55e480e8248e4396e10ba7650d9d419d0922e Mon Sep 17 00:00:00 2001 From: Xebax Date: Wed, 1 Oct 2014 22:00:45 +0200 Subject: [PATCH 2/2] Fix bug #1610: Civility is not displayed. --- htdocs/adherents/class/adherent.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index bd43ed134af..a057e7cba93 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -1090,7 +1090,7 @@ class Adherent extends CommonObject $this->ref = $obj->rowid; $this->id = $obj->rowid; $this->ref_ext = $obj->ref_ext; - $this->civility_id = $obj->civility; + $this->civility_id = $obj->civility_id; $this->firstname = $obj->firstname; $this->lastname = $obj->lastname; $this->login = $obj->login;