]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from Project#copy_issues
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 00:05:33 +0000 (00:05 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 00:05:33 +0000 (00:05 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12541 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/project.rb

index 4167d9a3aaffb21d9f3735d60cf0a7f03db8fd2f..a76587a5bc310d9f38c5de79378dd543acedbd97 100644 (file)
@@ -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