Refetches session's user when she updates her bestalias.
authorStéphane Jacob <sj@m4x.org>
Mon, 7 Mar 2011 17:55:19 +0000 (18:55 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 7 Mar 2011 17:55:19 +0000 (18:55 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/email.php

index f116ab5..21f251c 100644 (file)
@@ -80,6 +80,8 @@ class EmailModule extends PLModule
             // plat/al's code, we do an a posteriori check on the
             // validity of the bestalias.
             fix_bestalias($user);
+            // Then refetch the user to update its bestalias.
+            S::set('user', User::getWithUID(S::user()->id()));
         }
 
         // Fetch and display aliases.