From 3fcd5d529cfed1cd52ac69942b4603e121501c2f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 10 Jan 2014 04:19:47 +0000 Subject: [PATCH] add missing Relation#all at WorkflowsController#copy of r12583 git-svn-id: http://svn.redmine.org/redmine/trunk@12585 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/workflows_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb index 24bd5c528..c216cc9db 100644 --- a/app/controllers/workflows_controller.rb +++ b/app/controllers/workflows_controller.rb @@ -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)