Bug #2060
closed
Projects based on project types having issues assigned to fixed versions won't get created accordingly
Added by liaham about 1 year ago.
Updated about 1 year ago.
Compatible Redmine Version:
Description
When creating a project which is based on a project type having issues assigned to fixed versions the issues and the versions will be created but issues won't be assigned to the fixed version.
Related issues
1 (1 open — 0 closed)
The method copy_issues(project)
expects a Project
and not a ProjectType
especially at this lines:
# Reassign fixed_versions by name, since names are unique per project
if issue.fixed_version && issue.fixed_version.project == project
new_issue.fixed_version = self.versions.detect {|v| v.name == issue.fixed_version.name}
end
Since project.is_a?(ProjectType) # -> true
the assignment of issues to the fixed_version won't be executed!
This bug will probably also affect project import!
Try to fix it at ProjectsControllerPatch#prepare_source_project
.
- Related to Bug #2055: Issue synchronization creates more relations than it should added
- Status changed from New to In Progress
- % Done changed from 0 to 100
- Status changed from In Progress to Closed
Also available in: Atom
PDF