diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php index 1c9de056accdd6b40b7ef54b1e7e66c5cb3e9e20..60b90a9cf312912d8cd110e0c820a3f255b7360c 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 "<tr><td>".$langs->trans("Birthday")."</td><td>\n"; - $form->select_date(($object->naiss ? $object->naiss : -1),'naiss','','',1,'formsoc'); + $form->select_date(($object->birth ? $object->birth : -1),'birth','','',1,'formsoc'); print "</td></tr>\n"; // Profil public diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index bd43ed134af2f57b98e36668e2047f19f07a8e12..a057e7cba936fca59fc1be97815c0a6b01b63204 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;