diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-20 20:31:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-20 20:31:04 +0000 |
commit | b0be3b95aab8c01a7561431579c83cde07f3109f (patch) | |
tree | c1d102b7117176523e633e313526550acbcdd317 /app/helpers/search_helper.rb | |
parent | 94dbf641ffd7f479208b135b310585898058e20b (diff) | |
download | redmine-b0be3b95aab8c01a7561431579c83cde07f3109f.tar.gz redmine-b0be3b95aab8c01a7561431579c83cde07f3109f.zip |
Ability to search a project and its subprojects (#1264).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1439 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r-- | app/helpers/search_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 6b5a2cede..d6a2fb949 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -39,7 +39,8 @@ 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.active_children.empty? options << [@project.name, ''] unless @project.nil? - select_tag('projects', options_for_select(options, params[:projects].to_s)) if options.size > 1 + select_tag('scope', options_for_select(options, params[:scope].to_s)) if options.size > 1 end end |