Commit 95188e72 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'backport-es-global-search-difference' into 'master'

Backport differences in global search from EE to CE

See merge request !10445
parents 3e663a24 099acf71
......@@ -18,7 +18,11 @@ module Search
end
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
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