diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-03 09:20:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-03 09:20:58 +0000 |
commit | 5975bef0846982b13d40d2b323edd0580cf9b4ad (patch) | |
tree | eaf8658e04ce73eac0a4eb3cd2f385f9a3c4e56b /app/controllers/repositories_controller.rb | |
parent | 6c2e387bbd99b3a4d8faa2ba89df7871398ec387 (diff) | |
download | redmine-5975bef0846982b13d40d2b323edd0580cf9b4ad.tar.gz redmine-5975bef0846982b13d40d2b323edd0580cf9b4ad.zip |
Don't check that param is a Hash.
git-svn-id: http://svn.redmine.org/redmine/trunk@16606 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 eeb2bced7..cbe38210e 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -69,7 +69,7 @@ class RepositoriesController < ApplicationController @users += User.where(:id => additional_user_ids).to_a unless additional_user_ids.empty? @users.compact! @users.sort! - if request.post? && params[:committers].is_a?(Hash) + if request.post? && params[:committers].present? # Build a hash with repository usernames as keys and corresponding user ids as values @repository.committer_ids = params[:committers].values.inject({}) {|h, c| h[c.first] = c.last; h} flash[:notice] = l(:notice_successful_update) |