summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-05-30 08:58:26 +0000
committerGo MAEDA <maeda@farend.jp>2020-05-30 08:58:26 +0000
commitcb0161dc0e630dc7838a506d2ce66a4910decca6 (patch)
tree043648b6cf0e6079a499b315a64fcb1f8162c75d /lib/redmine.rb
parent48839a28628f8bc11692d8e0a96d793b238c6807 (diff)
downloadredmine-cb0161dc0e630dc7838a506d2ce66a4910decca6.tar.gz
redmine-cb0161dc0e630dc7838a506d2ce66a4910decca6.zip
Show Roadmap tab when subprojects have defined versions (#7956).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19801 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index beaebaec8..668a65da2 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -303,7 +303,7 @@ Redmine::MenuManager.map :project_menu do |menu|
menu.push :overview, { :controller => 'projects', :action => 'show' }
menu.push :activity, { :controller => 'activities', :action => 'index' }
menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id,
- :if => Proc.new { |p| p.shared_versions.any? }
+ :if => Proc.new { |p| Setting.display_subprojects_issues? ? p.rolled_up_versions.any? : p.shared_versions.any? }
menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
menu.push :new_issue, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
:html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) },