From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 04:25:36 +0000 (+0000) Subject: code layout clean up IssuesController#build_new_issue_from_params X-Git-Tag: 4.2.0~1486 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5b1bd277f8ddd3e2d9316cffc95a885bc62e0d68;p=redmine.git code layout clean up IssuesController#build_new_issue_from_params git-svn-id: http://svn.redmine.org/redmine/trunk@19153 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 9829b124e..82f165025 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -543,7 +543,9 @@ class IssuesController < ApplicationController @copy_attachments = params[:copy_attachments].present? || request.get? @copy_subtasks = params[:copy_subtasks].present? || request.get? @copy_watchers = User.current.allowed_to?(:add_issue_watchers, @project) - @issue.copy_from(@copy_from, :attachments => @copy_attachments, :subtasks => @copy_subtasks, :watchers => @copy_watchers, :link => @link_copy) + @issue.copy_from(@copy_from, :attachments => @copy_attachments, + :subtasks => @copy_subtasks, :watchers => @copy_watchers, + :link => @link_copy) @issue.parent_issue_id = @copy_from.parent_id rescue ActiveRecord::RecordNotFound render_404