{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2010 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
<tr class='promo'>
<td class='titre'>Promotion :</td>
<td><input type='text' name='promo' size='4' maxlength='4'
- {if $smarty.post.promo}value='{$smarty.post.promo}'{else}value='{$smarty.session.promo}'{/if} /></td>
+ {assign var="profile" value=$smarty.session.user->profile()}
+ {if $smarty.post.promo}value='{$smarty.post.promo}'{else}value='{$profile->yearpromo()}'{/if} /></td>
<td class='smaller' colspan='3'>Par exemple : 2004</td>
</tr>
<tr class='groupex'>