diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-28 01:24:30 +0800 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-11-13 15:27:42 +0800 |
commit | 2da77592717cea469785381b15c53b1eafdc2afa (patch) | |
tree | 924ce176b9e17f6e866f4960785c59bc1b8d9d8b /app/helpers/search_helper.rb | |
parent | 123970182274ead330cdb93a1cb3296884b1cd69 (diff) | |
download | gitlab-ce-2da77592717cea469785381b15c53b1eafdc2afa.tar.gz |
Apply new search bar on issues and merge request dashboards
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r-- | app/helpers/search_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 4f9e1322b56..70c02107b34 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -163,10 +163,11 @@ module SearchHelper if @project.present? opts[:data]['project-id'] = @project.id opts[:data]['base-endpoint'] = project_path(@project) - else - # Group context + elsif @group.present? opts[:data]['group-id'] = @group.id opts[:data]['base-endpoint'] = group_canonical_path(@group) + else + opts[:data]['base-endpoint'] = root_dashboard_path end opts |