summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-07-31 13:09:09 +0000
committerGo MAEDA <maeda@farend.jp>2022-07-31 13:09:09 +0000
commit117553bb4902a1123a94214e9021884cfbf4e555 (patch)
tree983f3bd790f14327891c34539d99c29bf141a33c /lib
parentcbd2e83b01bc544648b0269368bd640ecc3ff42e (diff)
downloadredmine-117553bb4902a1123a94214e9021884cfbf4e555.tar.gz
redmine-117553bb4902a1123a94214e9021884cfbf4e555.zip
Merged r21741 and r21742 from trunk to 5.0-stable (#33953).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21747 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/preparation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/preparation.rb b/lib/redmine/preparation.rb
index 2ba3b5447..4e4b4e866 100644
--- a/lib/redmine/preparation.rb
+++ b/lib/redmine/preparation.rb
@@ -367,7 +367,7 @@ module Redmine
menu.push :repository,
{:controller => 'repositories', :action => 'show',
:repository_id => nil, :path => nil, :rev => nil},
- :if => Proc.new {|p| p.repository && !p.repository.new_record?}
+ :if => Proc.new {|p| p.repositories.any? {|r| !r.new_record?}}
menu.push :settings, {:controller => 'projects', :action => 'settings'},
:last => true
end