From: Thomas Minvielle Date: Sun, 11 Sep 2011 09:15:32 +0000 (+0200) Subject: Notification mail from carnet does not include dead contacts. Syntax to be checked. X-Git-Tag: xorg/1.1.4~172 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=bec31a9ae807896a70630e9db01e4647065e7d9e;p=platal.git Notification mail from carnet does not include dead contacts. Syntax to be checked. --- diff --git a/templates/carnet/notif.mail.tpl b/templates/carnet/notif.mail.tpl index df21a2d..20a100c 100644 --- a/templates/carnet/notif.mail.tpl +++ b/templates/carnet/notif.mail.tpl @@ -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}