Prevent apps from modifying favorites by reference.

Fixes projectmanager favorites stop working
This commit is contained in:
Nathan Gray 2015-09-29 16:21:05 +00:00
parent dde1a5e51d
commit 0438456ad3

View File

@ -390,7 +390,8 @@ var AppJS = Class.extend(
var pref = egw.preference('favorite_' + this.dataset.id, self.appname); var pref = egw.preference('favorite_' + this.dataset.id, self.appname);
if(pref) if(pref)
{ {
state = pref; // Extend, to prevent changing the preference by reference
jQuery.extend(true, state, pref);
} }
if(this.dataset.id != 'add') if(this.dataset.id != 'add')
{ {