From 5c12225aec77d506abaf2b20958245ffc9f64786 Mon Sep 17 00:00:00 2001 From: Dennis Schmidt Date: Wed, 8 Aug 2012 16:19:18 +0200 Subject: [PATCH] fixed detection of target project when moving issues --- app/controllers/issue_moves_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/issue_moves_controller.rb b/app/controllers/issue_moves_controller.rb index bc29fd09cf..70a0ea04c2 100644 --- a/app/controllers/issue_moves_controller.rb +++ b/app/controllers/issue_moves_controller.rb @@ -64,7 +64,7 @@ class IssueMovesController < ApplicationController @issues.sort! @copy = params[:copy_options] && params[:copy_options][:copy] @allowed_projects = Issue.allowed_target_projects_on_move - @target_project = @allowed_projects.detect {|p| p.id.to_s == params[:new_project_id]} if params[:new_project_id] + @target_project = @allowed_projects.detect {|p| p.id.to_s == params[:new_project_id].to_s} if params[:new_project_id] @target_project ||= @project @trackers = @target_project.trackers @available_statuses = Workflow.available_statuses(@project)