Defect #11803
closedWhen copying a project, issues are not copied
0%
Description
I downloaded and installed the lastest Bitnami Redmine, 'bitnami-redmine-2.0.3-1-windows-installer-r01.exe' (I think it's using Redmine 2.0.3 and ruby 1.8). When I copy a project,
I select this:
----
Copy
Members (1)
Versions (4)
Issue categories (0)
Issues (8)
Custom queries (0)
Forums (0)
Wiki pages (0)
----
however, the members and version etc are copied but not the issues, i.e. the issues from the original project are not copied into the new project.
I also looked at the production.log file, and see the message,
"Project#copy_issues: issue #300 could not be copied: ..."
then I locate the code in the project.rb file,
------------
def copy_issues(project)
...
if new_issue.new_record?
logger.info "Project#copy_issues: issue ##{issue.id} could not be copied: #{new_issue.errors.full_messages}" if logger && logger.info
else
issues_map[issue.id] = new_issue unless new_issue.new_record?
end
...
---------------
but I couldn't figure it out. Seems setting new_issue.new_record to true gives an error.
I also look at ChangeLog from 0.8 to 2.0.3, didn't find about this, is this functionality already implemented in the latest Redmine?
By the way, is there an wasy way to change Bitnami Redmine from production to development mode so I don't have to restart the service (could take couple minutes) everytime I modify some code to debug it.
Look forward your help, thanks much for your help and advice!
=======
See also:
Defect #10450
« Copy project Issues not working »
Added by Mario Luzeiro 6 months ago
Related issues