Copy project

Added by Luis Serrano Aranda about 9 years ago

I a copy a project and I want to copy inside a project redmine dont copy inside this project, it copies the project in the project root, It's a bug ?

Thanks

Replies (7)

RE: Copy project - Added by Etienne Massip about 9 years ago

Sorry, I don't understand the question !

RE: Copy project - Added by Luis Serrano Aranda about 9 years ago

I try to copy a project inside another project
ok ?
And Redmine copy the project, but not within the project you specified, Redmine copy the project in root.

If I change the line 122 in the file /app/controllers/projects_controller.rb
From
if validate_parent_id && @project.copy(@source_project, :only => params[:only])
to
if validate_parent_id && (@source_project, :only => params[:only])

This function works but I dont know if this is correct.

RE: Copy project - Added by Luis Serrano Aranda about 9 years ago

I already know what the problem Redmine project does not copy correctly to the desired directory if it has any issue.

RE: Copy project - Added by Luis Serrano Aranda about 9 years ago

Also do not copy the issues

RE: Copy project - Added by Luis Serrano Aranda about 9 years ago

Redmine not copy the issues because I added a custom field in the issues (after) and this is also required

RE: Copy project - Added by Etienne Massip about 9 years ago

Is it the same as #5826 ?

I presume issues are not supposed to be copied with the project, you are free to do that afterwards from the issue list.

RE: Copy project - Added by Luis Serrano Aranda about 9 years ago

That was the problem, I put a value in this field and working properly the copy, sorry and thanks

(1-7/7)