diff --git a/phpgwapi/js/jsapi/app_base.js b/phpgwapi/js/jsapi/app_base.js index 36f874ba55..637e5eca84 100644 --- a/phpgwapi/js/jsapi/app_base.js +++ b/phpgwapi/js/jsapi/app_base.js @@ -390,7 +390,8 @@ var AppJS = Class.extend( var pref = egw.preference('favorite_' + this.dataset.id, self.appname); if(pref) { - state = pref; + // Extend, to prevent changing the preference by reference + jQuery.extend(true, state, pref); } if(this.dataset.id != 'add') {