FIX: search context was missing when searching inside a category

This commit is contained in:
Robin Ward 2014-02-03 11:38:11 -05:00
parent ea9ff108c5
commit 9606ae5dcb

View File

@ -57,7 +57,7 @@ function buildCategoryRoute(filter, params) {
filterMode = "category/" + Discourse.Category.slugFor(model) + (noSubcategories ? "/none" : "") + "/l/" + filter,
listFilter = "category/" + Discourse.Category.slugFor(model) + "/l/" + filter;
this.controllerFor('search').set('searchContext', model);
this.controllerFor('search').set('searchContext', model.get('searchContext'));
var opts = { category: model, filterMode: filterMode };
opts.noSubcategories = params && params.no_subcategories;