mirror of
https://github.com/redmine/redmine.git
synced 2026-07-07 19:52:13 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user