mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
remove "My projects" from scope
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user