Notification mail from carnet does not include dead contacts. Syntax to be checked.
[platal.git] / templates / carnet / notif.mail.tpl
index df21a2d..20a100c 100644 (file)
@@ -37,8 +37,10 @@ Tu trouveras les mêmes informations sur [[https://www.polytechnique.org/carnet/
 {$cat.title} :
 
 {foreach from=$cat.users item=user}
+{if not isset($user->death())}
 {assign var=profile value=$user->profile()}
 * Le {$cat.operation->getDate($user)|date_format:"%d %B %Y"}, [[https://www.polytechnique.org/profile/private/{$profile->hrid()}|{$profile->fullname(true)}]]
+{/if}
 {/foreach}
 
 {/foreach}