diff --git a/application/user.preferences.class.inc.php b/application/user.preferences.class.inc.php index dc7da3bd5..6febec34a 100644 --- a/application/user.preferences.class.inc.php +++ b/application/user.preferences.class.inc.php @@ -155,7 +155,9 @@ class appUserPreferences extends DBObject { if (self::$oUserPrefs->IsModified()) { + utils::PushArchiveMode(false); self::$oUserPrefs->DBUpdate(); + utils::PopArchiveMode(); } } } @@ -179,7 +181,9 @@ class appUserPreferences extends DBObject $oObj->Set('preferences', array()); // Default preferences: an empty array try { + utils::PushArchiveMode(false); $oObj->DBInsert(); + utils::PopArchiveMode(); } catch(Exception $e) { @@ -214,7 +218,8 @@ class appUserPreferences extends DBObject */ public function DBDeleteTracked(CMDBChange $oChange, $bSkipStrongSecurity = null, &$oDeletionPlan = null) { + utils::PushArchiveMode(false); $this->DBDelete($oDeletionPlan); + utils::PopArchiveMode(); } } -?> diff --git a/pages/preferences.php b/pages/preferences.php index 87e3cb942..8fe89daa4 100644 --- a/pages/preferences.php +++ b/pages/preferences.php @@ -344,7 +344,9 @@ try $sLangCode = utils::ReadParam('language', 'EN US'); $oUser = UserRights::GetUserObject(); $oUser->Set('language', $sLangCode); + utils::PushArchiveMode(false); $oUser->DBUpdate(); + utils::PopArchiveMode(); // Redirect to force a reload/display of the page with the new language $oAppContext = new ApplicationContext(); $sURL = utils::GetAbsoluteUrlAppRoot().'pages/preferences.php?'.$oAppContext->GetForLink(); @@ -423,4 +425,3 @@ catch(Exception $e) IssueLog::Error($e->getMessage()); } } -?>