]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up IssuesController#build_new_issue_from_params
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 04:25:36 +0000 (04:25 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 04:25:36 +0000 (04:25 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19153 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 9829b124ef943e6cb4f066d8b2eb78b15550aaeb..82f165025723d959954ec2bddc44df1e3458209e 100644 (file)
@@ -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