Merge pull request #3651 from tgxworld/fix_broken_private_message_search_context

FIX: Broken private message search context.
This commit is contained in:
Régis Hanol 2015-08-14 18:12:36 +02:00
commit 183f6d89b8

View file

@ -14,9 +14,9 @@ export default Em.Controller.extend({
return Ember.get(searchContext, 'type');
}
},
set(key, value) {
set(value, searchContext) {
// a bit hacky, consider cleaning this up, need to work through all observers though
const context = $.extend({}, this.get('searchContext'));
const context = $.extend({}, searchContext);
context.type = value;
this.set('searchContext', context);
return this.get('searchContext.type');