]> git.agnieray.net Git - galette.git/commitdiff
No notification on contribution edit; closes #1467
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 20 Jul 2020 06:39:20 +0000 (08:39 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 20 Jul 2020 06:39:20 +0000 (08:39 +0200)
galette/templates/default/ajouter_contribution.tpl

index 1883bb87103686103be00257bb29de0a453954a8..d86b99a624f4cbe21b3279ec4d310722210b7b70 100644 (file)
             </fieldset>
     {/if}
         {include file="edit_dynamic_fields.tpl" object=$contribution}
-    {if $pref_mail_method neq constant('Galette\Core\GaletteMail::METHOD_DISABLED')}
+    {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}/>