OSDN Git Service

Added the ability to copy a project in the Project Administration panel.
authorEric Davis <edavis@littlestreamsoftware.com>
Sun, 3 May 2009 21:25:37 +0000 (21:25 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Sun, 3 May 2009 21:25:37 +0000 (21:25 +0000)
commitfa7bd1c71dca1e9c74e6d83277336321393dac9f
tree4f1adac8a535ae7424887ea21f6171a22eb698ea
parent29c0dae1518ecb8a86d10da8e05caf70f731d746
Added the ability to copy a project in the Project Administration panel.

* Added Copy project button.
* Added Project#copy_from to duplicate a project to be modified and saved by the user
* Added a ProjectsController#copy based off the add method
** Used Project#copy_from to create a duplicate project in memory
* Implemented Project#copy to copy data for a project from another and save it.
** Members
** Project level queries
** Project custom fields
* Added a plugin hook for Project#copy.

  #1125  #1556  #886  #309

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2704 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/controllers/projects_controller.rb
app/models/project.rb
app/views/admin/projects.rhtml
app/views/projects/copy.rhtml [new file with mode: 0644]
config/locales/en.yml
test/fixtures/issues.yml
test/fixtures/queries.yml
test/functional/projects_controller_test.rb
test/unit/project_test.rb