diff options
Diffstat (limited to 'lib/redmine/preparation.rb')
-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 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 |