Commit 954dd398 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove duplicate items from search autocomplete

Old behaviour gave you duplicate entries if your project is public
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent c0f6a932
...@@ -8,7 +8,9 @@ module SearchHelper ...@@ -8,7 +8,9 @@ module SearchHelper
default_autocomplete, default_autocomplete,
project_autocomplete, project_autocomplete,
help_autocomplete help_autocomplete
].flatten.to_json ].flatten.uniq do |item|
item[:label]
end.to_json
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment