diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php
index 5b8de7149b1..6393c567237 100644
--- a/htdocs/adherents/fiche.php
+++ b/htdocs/adherents/fiche.php
@@ -53,7 +53,7 @@ $typeid=isset($_GET["typeid"])?$_GET["typeid"]:$_POST["typeid"];
* Actions
*/
-if ($_POST["action"] == 'sendinfo')
+if ($_POST["action"] == 'confirm_sendinfo' && $_POST["confirm"] == 'yes')
{
$adh = new Adherent($db);
$adh->id = $rowid;
@@ -115,7 +115,7 @@ if ($_POST["action"] == 'cotisation')
}
}
-if ($action == 'update')
+if ($_REQUEST["action"] == 'update')
{
if ($_POST["bouton"] == $langs->trans("Save"))
{
@@ -683,6 +683,13 @@ if ($rowid && $action != 'edit')
print '
';
}
+ // Confirmation de l'envoi fiche par mail
+ if ($action == 'sendinfo')
+ {
+ $html->form_confirm("fiche.php?rowid=$rowid",$langs->trans("SendCardByMail"),$langs->trans("ConfirmSendCardByMail"),"confirm_sendinfo");
+ print '
';
+ }
+
// Confirmation de la Résiliation
if ($action == 'resign')
{