]> source.dussan.org Git - redmine.git/commitdiff
add missing Relation#all at WorkflowsController#copy of r12583
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 04:19:47 +0000 (04:19 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 04:19:47 +0000 (04:19 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12585 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/workflows_controller.rb

index 24bd5c528c8a2f8904b8de0b9ba64da6fc6bbaf7..c216cc9db72de146b17bae5bfa9a1dfd8a0904cb 100644 (file)
@@ -101,7 +101,7 @@ class WorkflowsController < ApplicationController
     @target_trackers = params[:target_tracker_ids].blank? ?
         nil : Tracker.where(:id => params[:target_tracker_ids]).all
     @target_roles = params[:target_role_ids].blank? ?
-        nil : Role.where(:id => params[:target_role_ids])
+        nil : Role.where(:id => params[:target_role_ids]).all
     if request.post?
       if params[:source_tracker_id].blank? || params[:source_role_id].blank? || (@source_tracker.nil? && @source_role.nil?)
         flash.now[:error] = l(:error_workflow_copy_source)