mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 23:41:44 +08:00
FIX: search context was missing when searching inside a category
This commit is contained in:
parent
ea9ff108c5
commit
9606ae5dcb
|
@ -57,7 +57,7 @@ function buildCategoryRoute(filter, params) {
|
||||||
filterMode = "category/" + Discourse.Category.slugFor(model) + (noSubcategories ? "/none" : "") + "/l/" + filter,
|
filterMode = "category/" + Discourse.Category.slugFor(model) + (noSubcategories ? "/none" : "") + "/l/" + filter,
|
||||||
listFilter = "category/" + Discourse.Category.slugFor(model) + "/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 };
|
var opts = { category: model, filterMode: filterMode };
|
||||||
opts.noSubcategories = params && params.no_subcategories;
|
opts.noSubcategories = params && params.no_subcategories;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user