remove "My projects" from scope

This commit is contained in:
Wieland Lindenthal
2019-01-09 16:44:34 +01:00
parent 816c6bd8ca
commit 5df4e032ab
2 changed files with 0 additions and 3 deletions
-2
View File
@@ -42,8 +42,6 @@ class SearchController < ApplicationController
case search_params[:scope]
when 'all'
nil
when 'my_projects'
User.current.memberships.map(&:project)
when 'current_project'
@project
else
-1
View File
@@ -91,7 +91,6 @@ module SearchHelper
def project_select_tag
options = [[l(:label_project_all), 'all']]
options << [l(:label_my_projects), 'my_projects'] unless User.current.memberships.empty?
options << [l(:label_and_its_subprojects, @project.name), 'subprojects'] unless @project.nil? || @project.descendants.active.empty?
options << [@project.name, 'current_project'] unless @project.nil?
styled_select_tag('scope', options_for_select(options, current_scope)) if options.size > 1