]> source.dussan.org Git - redmine.git/commitdiff
Don't check that param is a Hash.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 3 Jun 2017 09:20:58 +0000 (09:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 3 Jun 2017 09:20:58 +0000 (09:20 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16606 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/repositories_controller.rb

index eeb2bced79b0591553db8aabc0a8f1c4b075d370..cbe38210ed629afb68296aee79870dff0284894c 100644 (file)
@@ -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)