From f70e0e9b009506992f0c407a43182f19e1e7f8e7 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 11 Aug 2008 06:18:18 +0000 Subject: [PATCH] Updated locale handling if a user gets saved Closes #525 -Only update locale settings, if the edited user is the currently logged in user. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12184 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/class_user.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 84fd2affe..08ba9015c 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -1030,8 +1030,9 @@ class user extends plugin /* Finally write data with selected 'mode' */ $this->cleanup(); - if(isset($this->attrs['preferredLanguage'])){ - $ui = session::get('ui'); + /* Update current locale settings, if we have edited ourselves */ + $ui = session::get('ui'); + if(isset($this->attrs['preferredLanguage']) && $this->dn == $ui->dn){ $ui->language = $this->preferredLanguage; session::set('ui',$ui); session::set('Last_init_lang',"update"); -- 2.30.2