Skip to content

Commit

Permalink
Merge pull request pockethub#636 from jonanp/issue-search
Browse files Browse the repository at this point in the history
Fix duplicate issues when searching.
  • Loading branch information
fadils committed Dec 19, 2014
2 parents 20186e6 + c6bb458 commit 9624de4
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ public List<SearchIssue> loadData() throws Exception {
if (repository == null)
return Collections.emptyList();
List<SearchIssue> matches = new ArrayList<SearchIssue>();
matches.addAll(service.searchIssues(repository, STATE_OPEN,
query));
matches.addAll(service.searchIssues(repository, STATE_CLOSED,
query));
/** TODO
* This request is using a legacy API that is not working properly
* it needs to be fixed
*/
matches.addAll(service.searchIssues(repository, STATE_OPEN, query));
//matches.addAll(service.searchIssues(repository, STATE_CLOSED, query));
Collections.sort(matches, SearchIssueListFragment.this);
return matches;
}
Expand Down

0 comments on commit 9624de4

Please sign in to comment.