remove unneeded Relation#all from Project#copy_issues

git-svn-id: http://svn.redmine.org/redmine/trunk@12541 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-09 00:05:33 +00:00
parent ca4dcdc3af
commit c0e587ffc4
1 changed files with 1 additions and 1 deletions

View 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