Commit 099acf71 authored by Nick Thomas's avatar Nick Thomas

Backport differences in global search from EE to CE

parent 5efd6794
...@@ -18,7 +18,11 @@ module Search ...@@ -18,7 +18,11 @@ module Search
end end
def scope def scope
@scope ||= %w[issues merge_requests milestones].delete(params[:scope]) { 'projects' } @scope ||= begin
allowed_scopes = %w[issues merge_requests milestones]
allowed_scopes.delete(params[:scope]) { 'projects' }
end
end end
end end
end end
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