Projet

Général

Profil

Actions

Evolution #1481

fermé

Add a param to always send contribution mails

Ajouté par Johan Cwiklinski il y a plus de 3 ans. Mis à jour il y a plus de 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
IHM
Version cible:
Début:
17/08/2020
Echéance:
% réalisé:

100%

Temps estimé:

Description

When creating a contribution; you can send member an email but you have to check the box every time. A parameter should be added to set initial state.


Demandes liées 1 (0 ouverte1 fermée)

Lié à Galette - Souhaits #1536: Pouvoir configurer que lors de l'enregistrement d'un nouveau don ou nouvelle cotisation, l'adhérent soit notifié par défautFerméJohan Cwiklinski17/01/2021

Actions

Mis à jour par Johan Cwiklinski il y a plus de 3 ans

A quick fix would be:

diff --git a/galette/templates/default/ajouter_contribution.tpl b/galette/templates/default/ajouter_contribution.tpl
index d86b99a6..43a63228 100644
--- a/galette/templates/default/ajouter_contribution.tpl
+++ b/galette/templates/default/ajouter_contribution.tpl
@@ -160,7 +160,7 @@
     {if not $contribution->id and $pref_mail_method neq constant('Galette\Core\GaletteMail::METHOD_DISABLED')}
             <p>
                 <label for="mail_confirm">{_T string="Notify member"}</label>
-                <input type="checkbox" name="mail_confirm" id="mail_confirm" value="1" {if isset($smarty.post.mail_confirm) and $smarty.post.mail_confirm != ""}checked="checked"{/if}/>
+                <input type="checkbox" name="mail_confirm" id="mail_confirm" value="1" checked="checked"/>
                 <br/><span class="exemple">{_T string="Member will receive a notification by email, if he has an address."}</span>
             </p>
     {/if}

Note: with this fix, the box will always be checked; even if you've unchecked it when you initially submitted the form (this may happen when an error occurs saving the contribution, or if there is a contribution overflow).

Mis à jour par Johan Cwiklinski il y a plus de 2 ans

  • Lié à Souhaits #1536: Pouvoir configurer que lors de l'enregistrement d'un nouveau don ou nouvelle cotisation, l'adhérent soit notifié par défaut ajouté

Mis à jour par Johan Cwiklinski il y a plus de 2 ans

  • Statut changé de Nouveau à In Progress
  • Assigné à mis à Johan Cwiklinski
  • Version cible mis à 0.9.5.1

Mis à jour par Johan Cwiklinski il y a plus de 2 ans

  • Statut changé de In Progress à Résolu
  • % réalisé changé de 0 à 100

Mis à jour par Johan Cwiklinski il y a plus de 2 ans

  • Statut changé de Résolu à Fermé
Actions

Formats disponibles : Atom PDF