Commit a7e1290a676ce3d7870d88e2e5328c65293279a0

Authored by Dmitriy Zaporozhets
2 parents 8700e91d 954dd398

Merge branch 'bug/duplicates_in_search' of /home/git/repositories/gitlab/gitlabhq

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
app/helpers/search_helper.rb
@@ -8,7 +8,9 @@ module SearchHelper @@ -8,7 +8,9 @@ module SearchHelper
8 default_autocomplete, 8 default_autocomplete,
9 project_autocomplete, 9 project_autocomplete,
10 help_autocomplete 10 help_autocomplete
11 - ].flatten.to_json 11 + ].flatten.uniq do |item|
  12 + item[:label]
  13 + end.to_json
12 end 14 end
13 15
14 private 16 private