diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 00:05:33 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 00:05:33 +0000 |
commit | c0e587ffc458f50dd21bcad719e06c6185f7201f (patch) | |
tree | ad48da84d484f546aa9cc19a1f227a8defcda272 /app/models/project.rb | |
parent | ca4dcdc3af4a61870f5fb6651c566d50492a55bb (diff) | |
download | redmine-c0e587ffc458f50dd21bcad719e06c6185f7201f.tar.gz redmine-c0e587ffc458f50dd21bcad719e06c6185f7201f.zip |
remove unneeded Relation#all from Project#copy_issues
git-svn-id: http://svn.redmine.org/redmine/trunk@12541 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |