From 01ebbdbf0204546203da68f54f56718221ca90e5 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Thu, 19 Mar 2009 01:04:12 +0100 Subject: [PATCH] Fixes notification email on removal of "nom d'usage" -- the email was sent to the former bestalias email address. Signed-off-by: Vincent Zanotti --- include/validations/nomusage.inc.php | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.1.4