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 /app/controllers/repositories_controller.rb | |
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 'app/controllers/repositories_controller.rb')
-rw-r--r-- | app/controllers/repositories_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index e6546df1e..ff1230c88 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -337,7 +337,7 @@ class RepositoriesController < ApplicationController if params[:repository_id].present? @repository = @project.repositories.find_by_identifier_param(params[:repository_id]) else - @repository = @project.repository + @repository = @project.repository || @project.repositories.first end (render_404; return false) unless @repository @path = params[:path].is_a?(Array) ? params[:path].join('/') : params[:path].to_s |