mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: Search had wrong preload store key
This commit is contained in:
parent
46b61627cd
commit
32a1610b5d
2 changed files with 3 additions and 4 deletions
|
@ -74,9 +74,10 @@ function findTopicList(store, filter, filterParams, extras) {
|
|||
export default function(filter, extras) {
|
||||
extras = extras || {};
|
||||
return Discourse.Route.extend({
|
||||
queryParams: queryParams,
|
||||
queryParams,
|
||||
|
||||
beforeModel() {
|
||||
console.log('before model', filter);
|
||||
this.controllerFor('navigation/default').set('filterMode', filter);
|
||||
},
|
||||
|
||||
|
|
|
@ -74,7 +74,6 @@ class TopicQuery
|
|||
def list_search
|
||||
|
||||
results = nil
|
||||
|
||||
if @options[:q].present?
|
||||
search = Search.execute(@options[:q],
|
||||
type_filter: 'topic',
|
||||
|
@ -106,8 +105,7 @@ class TopicQuery
|
|||
.references('tu')
|
||||
end
|
||||
|
||||
list = create_list(:latest, {unordered: true}, results)
|
||||
|
||||
list = create_list(:search, {unordered: true}, results)
|
||||
|
||||
list.topics.each do |topic|
|
||||
if posts = posts_map[topic.id]
|
||||
|
|
Loading…
Reference in a new issue