From: Vincent Zanotti Date: Thu, 19 Mar 2009 00:04:12 +0000 (+0100) Subject: Fixes notification email on removal of "nom d'usage" -- the email was sent to the... X-Git-Tag: xorg/0.10.1~49^2~13 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=01ebbdbf0204546203da68f54f56718221ca90e5;p=platal.git Fixes notification email on removal of "nom d'usage" -- the email was sent to the former bestalias email address. Signed-off-by: Vincent Zanotti --- diff --git a/include/validations/nomusage.inc.php b/include/validations/nomusage.inc.php index 0bc76cd..df5bee3 100644 --- a/include/validations/nomusage.inc.php +++ b/include/validations/nomusage.inc.php @@ -117,6 +117,10 @@ class UsageReq extends Validate register_watch_op($this->user->id(), WATCH_FICHE, '', 'nom'); require_once('user.func.inc.php'); set_new_usage($this->user->id(), $this->nom_usage, $this->alias); + + // Update the local User object, to pick up the new bestalias. + $this->user = User::getSilent($this->user->id()); + return true; }