mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
Merge pull request #3651 from tgxworld/fix_broken_private_message_search_context
FIX: Broken private message search context.
This commit is contained in:
commit
183f6d89b8
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue