From c0e587ffc458f50dd21bcad719e06c6185f7201f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 00:05:33 +0000 Subject: [PATCH] remove unneeded Relation#all from Project#copy_issues git-svn-id: http://svn.redmine.org/redmine/trunk@12541 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 4167d9a3a..a76587a5b 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -851,7 +851,7 @@ class Project < ActiveRecord::Base # Get issues sorted by root_id, lft so that parent issues # get copied before their children - project.issues.reorder('root_id, lft').all.each do |issue| + project.issues.reorder('root_id, lft').each do |issue| new_issue = Issue.new new_issue.copy_from(issue, :subtasks => false, :link => false) new_issue.project = self -- 2.39.5