From cace3b27c99174717ad0438a3b87a2458b774ffe Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 1 Oct 2015 14:55:01 +0000 Subject: [PATCH] Prevent apps from modifying favorites by reference. Fixes projectmanager favorites stop working --- phpgwapi/js/jsapi/app_base.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/app_base.js b/phpgwapi/js/jsapi/app_base.js index 8c911ed153..c4ef08bd5f 100644 --- a/phpgwapi/js/jsapi/app_base.js +++ b/phpgwapi/js/jsapi/app_base.js @@ -385,7 +385,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') {