diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php index 6972f32113d..93bc4f4c162 100644 --- a/htdocs/adherents/card_subscriptions.php +++ b/htdocs/adherents/card_subscriptions.php @@ -52,6 +52,7 @@ $object = new Adherent($db); $extrafields = new ExtraFields($db); $adht = new AdherentType($db); $errmsg=''; +$errmsgs=array(); $defaultdelay=1; $defaultdelayunit='y'; @@ -405,9 +406,13 @@ if ($user->rights->adherent->cotisation->creer && $action == 'cotisation' && ! $ if (! $bank_line_id > 0) { $errmsg=$paiement->error; + $errmsgs=$paiement->errors; $error++; } + } + if (! $error) + { // Update fk_bank for subscriptions $sql = 'UPDATE '.MAIN_DB_PREFIX.'cotisation SET fk_bank='.$bank_line_id; $sql.= ' WHERE rowid='.$crowid;