Makes /projects/:project_id/issues/new accept PUT requests for when serializing a form with a PUT _method hidden tag.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8528 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-01-06 21:01:35 +00:00
1 parent 6d974eb018
commit bc3c151236
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -160,7 +160,7 @@ ActionController::Routing::Routes.draw do |map|
:only => [:update, :destroy]
# issue form update
project.issue_form 'issues/new', :controller => 'issues',
:action => 'new', :conditions => {:method => :post}
:action => 'new', :conditions => {:method => [:post, :put]}
project.resources :issues, :only => [:index, :new, :create] do |issues|
issues.resources :time_entries, :controller => 'timelog',
:collection => {:report => :get}