diff --git a/htdocs/compta/dons/fiche.php b/htdocs/compta/dons/fiche.php index e6ec1a422ae..1955a0367ae 100644 --- a/htdocs/compta/dons/fiche.php +++ b/htdocs/compta/dons/fiche.php @@ -405,7 +405,11 @@ if (! empty($id) && $action == 'edit') print "".''.$langs->trans("EMail").''; print "".$langs->trans("PaymentMode")."\n"; - $form->select_types_paiements('', 'modepaiement', 'CRDT', 0, 1); + + if ($don->modepaiementid) $selected = $don->modepaiementid; + else $selected = ''; + + $form->select_types_paiements($selected, 'modepaiement', 'CRDT', 0, 1); print "\n"; print "".''.$langs->trans("Status").''.$don->getLibStatut(4).''; @@ -496,7 +500,7 @@ if (! empty($id) && $action != 'edit') // Payment mode print "".$langs->trans("PaymentMode").""; - print $don->modepaiement; + print $form->form_modes_reglement(null, $don->modepaiementid,'none'); print "\n"; print "".''.$langs->trans("Status").''.$don->getLibStatut(4).'';