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:
parent
ca4dcdc3af
commit
c0e587ffc4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue