summaryrefslogtreecommitdiffstats
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-27 22:27:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-27 22:27:37 +0000
commitf1fdbf8d80d9867d707b48e0118089c201a3ced7 (patch)
treec6a8b53869705b4bd00c04eaa9c0dd270565f38e /app/models/project.rb
parentf58ed6c206743c5217b829c5169bb2b302b8b127 (diff)
downloadredmine-f1fdbf8d80d9867d707b48e0118089c201a3ced7.tar.gz
redmine-f1fdbf8d80d9867d707b48e0118089c201a3ced7.zip
Do not link copied issues when copying a project (#6899).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10495 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 9a65bdd2e..295d3cb05 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -778,7 +778,7 @@ class Project < ActiveRecord::Base
# get copied before their children
project.issues.find(:all, :order => 'root_id, lft').each do |issue|
new_issue = Issue.new
- new_issue.copy_from(issue, :subtasks => false)
+ new_issue.copy_from(issue, :subtasks => false, :link => false)
new_issue.project = self
# Reassign fixed_versions by name, since names are unique per project
if issue.fixed_version && issue.fixed_version.project == project