diff options
author | Go MAEDA <maeda@farend.jp> | 2022-07-27 15:35:25 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-07-27 15:35:25 +0000 |
commit | 8c1fda0b5de87621c8f06841b432aa7f888154cd (patch) | |
tree | d505f3fc8de243f2d473aa43c1e886e9f30bf84d /lib | |
parent | df305e3c408669ab0b861b437b973d85dd047d66 (diff) | |
download | redmine-8c1fda0b5de87621c8f06841b432aa7f888154cd.tar.gz redmine-8c1fda0b5de87621c8f06841b432aa7f888154cd.zip |
Repository tab is not displayed if no repository is set as the main repository (#33953).
Patch by Yuichi HARADA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21741 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/preparation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/preparation.rb b/lib/redmine/preparation.rb index d2249b03e..d006923bc 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 |