Fixed actions on issues (gantt, calendar, move, bulk_edit...) at global level broken by r2317.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2320 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-01-27 17:40:55 +00:00
parent e1f96ca4db
commit a4544b0b26
1 changed files with 7 additions and 7 deletions

View File

@ -114,17 +114,17 @@ ActionController::Routing::Routes.draw do |map|
issues_views.connect 'projects/:project_id/issues.:format', :action => 'index' issues_views.connect 'projects/:project_id/issues.:format', :action => 'index'
issues_views.connect 'projects/:project_id/issues/new', :action => 'new' issues_views.connect 'projects/:project_id/issues/new', :action => 'new'
issues_views.connect 'projects/:project_id/issues/:copy_from/copy', :action => 'new' issues_views.connect 'projects/:project_id/issues/:copy_from/copy', :action => 'new'
issues_views.connect 'issues/:id', :action => 'show' issues_views.connect 'issues/:id', :action => 'show', :id => /\d+/
issues_views.connect 'issues/:id.:format', :action => 'show' issues_views.connect 'issues/:id.:format', :action => 'show', :id => /\d+/
issues_views.connect 'issues/:id/edit', :action => 'edit' issues_views.connect 'issues/:id/edit', :action => 'edit', :id => /\d+/
issues_views.connect 'issues/:id/move', :action => 'move' issues_views.connect 'issues/:id/move', :action => 'move', :id => /\d+/
end end
issues_routes.with_options :conditions => {:method => :post} do |issues_actions| issues_routes.with_options :conditions => {:method => :post} do |issues_actions|
issues_actions.connect 'projects/:project_id/issues', :action => 'new' issues_actions.connect 'projects/:project_id/issues', :action => 'new'
issues_actions.connect 'issues/:id/quoted', :action => 'reply' issues_actions.connect 'issues/:id/quoted', :action => 'reply', :id => /\d+/
issues_actions.connect 'issues/:id/:action', issues_actions.connect 'issues/:id/:action', :action => /edit|move|destroy/, :id => /\d+/
:action => /edit|move|destroy/
end end
issues_routes.connect 'issues/:action'
end end
map.with_options :controller => 'issue_relations', :conditions => {:method => :post} do |relations| map.with_options :controller => 'issue_relations', :conditions => {:method => :post} do |relations|