From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 00:05:33 +0000 (+0000) Subject: remove unneeded Relation#all from Project#copy_issues X-Git-Tag: 2.5.0~358 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0e587ffc458f50dd21bcad719e06c6185f7201f;p=redmine.git remove unneeded Relation#all from Project#copy_issues git-svn-id: http://svn.redmine.org/redmine/trunk@12541 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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