From dbe9391036bf0a8ca5a9f6194d39f0547a57a8f3 Mon Sep 17 00:00:00 2001 From: cpradio Date: Wed, 26 Oct 2016 14:14:23 -0400 Subject: [PATCH] FIX: Correct Speedy entry in Posted before/after and Minimum Post Count --- .../discourse/components/search-advanced-options.js.es6 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/components/search-advanced-options.js.es6 b/app/assets/javascripts/discourse/components/search-advanced-options.js.es6 index 242bce46d54..b45f54b5306 100644 --- a/app/assets/javascripts/discourse/components/search-advanced-options.js.es6 +++ b/app/assets/javascripts/discourse/components/search-advanced-options.js.es6 @@ -88,7 +88,6 @@ export default Em.Component.extend({ return; } - this.findSearchTerms(); this.setSearchedTermValue('searchedTerms.username', REGEXP_USERNAME_PREFIX); this.setSearchedTermValueForCategory(); this.setSearchedTermValueForGroup(); @@ -117,11 +116,11 @@ export default Em.Component.extend({ result.push(block); }); - this.set('searchTermBlocks', result); + return result; }, filterBlocks(regexPrefix) { - const blocks = this.get('searchTermBlocks'); + const blocks = this.findSearchTerms(); if (!blocks) return []; let result = [];