From 7ef2f48660b49f1c5541c47561548d673d84e3fd Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 8 Oct 2014 13:03:18 +1100 Subject: [PATCH] FIX: not showing any search results when scoped on user --- app/assets/javascripts/discourse/lib/search-for-term.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/search-for-term.js.es6 b/app/assets/javascripts/discourse/lib/search-for-term.js.es6 index 0a78ee37e..592195f72 100644 --- a/app/assets/javascripts/discourse/lib/search-for-term.js.es6 +++ b/app/assets/javascripts/discourse/lib/search-for-term.js.es6 @@ -59,7 +59,10 @@ export default function searchForTerm(term, opts) { } }); - var noResults = !!((results.topics.length === 0) && (results.posts.length === 0) && (results.categories.length === 0)); + var noResults = !!(results.topics.length === 0 && + results.posts.length === 0 && + results.users.length === 0 && + results.categories.length === 0); return noResults ? null : Em.Object.create(results); });