Merge pull request #4521 from cpradio/fix-advanced-search-speedy-entry

FIX: Correct Speedy entry in Posted before/after and Minimum Post Count
This commit is contained in:
Guo Xiang Tan 2016-10-28 12:21:55 +08:00 committed by GitHub
commit 753a65833a
1 changed files with 2 additions and 3 deletions

View File

@ -88,7 +88,6 @@ export default Em.Component.extend({
return; return;
} }
this.findSearchTerms();
this.setSearchedTermValue('searchedTerms.username', REGEXP_USERNAME_PREFIX); this.setSearchedTermValue('searchedTerms.username', REGEXP_USERNAME_PREFIX);
this.setSearchedTermValueForCategory(); this.setSearchedTermValueForCategory();
this.setSearchedTermValueForGroup(); this.setSearchedTermValueForGroup();
@ -117,11 +116,11 @@ export default Em.Component.extend({
result.push(block); result.push(block);
}); });
this.set('searchTermBlocks', result); return result;
}, },
filterBlocks(regexPrefix) { filterBlocks(regexPrefix) {
const blocks = this.get('searchTermBlocks'); const blocks = this.findSearchTerms();
if (!blocks) return []; if (!blocks) return [];
let result = []; let result = [];