diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index e1c0b73fa70..3b3f1305484 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -819,8 +819,8 @@ if ($action == 'edit') $res=$object->fetch($rowid); if ($res < 0) { dol_print_error($db,$object->error); exit; } - //$res=$object->fetch_optionals($object->id,$extralabels); - //if ($res < 0) { dol_print_error($db); exit; } + $res=$object->fetch_optionals($object->id,$extralabels); + if ($res < 0) { dol_print_error($db); exit; } $adht = new AdherentType($db); $adht->fetch($object->typeid); @@ -1052,7 +1052,6 @@ if ($rowid && $action != 'edit') /* */ /* ************************************************************************** */ - //$object = new Adherent($db); $res=$object->fetch($rowid); if ($res < 0) { dol_print_error($db,$object->error); exit; } $res=$object->fetch_optionals($object->id,$extralabels);