diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-03-07 16:21:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-03-07 16:21:59 +0000 |
commit | 730bba8130ba72d6c6d01edc5712169068d67ba7 (patch) | |
tree | 6b2d15f302dc717f36065ba0b8aa1a5d14c0b7af /app | |
parent | 0965aafd51bb3cd0284f3e31e566b53574a87dd6 (diff) | |
download | redmine-730bba8130ba72d6c6d01edc5712169068d67ba7.tar.gz redmine-730bba8130ba72d6c6d01edc5712169068d67ba7.zip |
Fixed undefined method `compact!' error when additional_user_ids is empty (#19253).
git-svn-id: http://svn.redmine.org/redmine/trunk@14053 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-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 6e968f909..364b834ef 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -92,7 +92,7 @@ class RepositoriesController < ApplicationController def committers @committers = @repository.committers - @users = @project.users + @users = @project.users.to_a additional_user_ids = @committers.collect(&:last).collect(&:to_i) - @users.collect(&:id) @users += User.where(:id => additional_user_ids).to_a unless additional_user_ids.empty? @users.compact! |