diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-07 05:09:13 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-07 05:09:13 +0000 |
commit | 7fe7fdd7bc87a0e34225e66c91ab6583d6989f28 (patch) | |
tree | defa6ca627d4cf2784f772647f53a9c8b166220a /lib/redmine.rb | |
parent | bd31345c87f8d19a98edb5977507bc8f76da1688 (diff) | |
download | redmine-7fe7fdd7bc87a0e34225e66c91ab6583d6989f28.tar.gz redmine-7fe7fdd7bc87a0e34225e66c91ab6583d6989f28.zip |
Roadmap tab is missing if there are only inherited from parent project versions (#34983).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@20921 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r-- | lib/redmine.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index ee9aece1a..465e7dded 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -367,10 +367,10 @@ Redmine::MenuManager.map :project_menu do |menu| :param => :project_id, :if => Proc.new do |p| - if Setting.display_subprojects_issues? - p.rolled_up_versions.any? + if p.shared_versions.any? + true else - p.shared_versions.any? + Setting.display_subprojects_issues? && p.rolled_up_versions.any? end end ) |