From: Jean-Philippe Lang Date: Tue, 27 Jan 2009 17:40:55 +0000 (+0000) Subject: Fixed actions on issues (gantt, calendar, move, bulk_edit...) at global level broken... X-Git-Tag: 0.9.0~754 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a4544b0b2664476b9c6dd68773c64e61a565c684;p=redmine.git 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 --- diff --git a/config/routes.rb b/config/routes.rb index 77df6816e..e426d7daf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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/new', :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.:format', :action => 'show' - issues_views.connect 'issues/:id/edit', :action => 'edit' - issues_views.connect 'issues/:id/move', :action => 'move' + issues_views.connect 'issues/:id', :action => 'show', :id => /\d+/ + issues_views.connect 'issues/:id.:format', :action => 'show', :id => /\d+/ + issues_views.connect 'issues/:id/edit', :action => 'edit', :id => /\d+/ + issues_views.connect 'issues/:id/move', :action => 'move', :id => /\d+/ end issues_routes.with_options :conditions => {:method => :post} do |issues_actions| issues_actions.connect 'projects/:project_id/issues', :action => 'new' - issues_actions.connect 'issues/:id/quoted', :action => 'reply' - issues_actions.connect 'issues/:id/:action', - :action => /edit|move|destroy/ + issues_actions.connect 'issues/:id/quoted', :action => 'reply', :id => /\d+/ + issues_actions.connect 'issues/:id/:action', :action => /edit|move|destroy/, :id => /\d+/ end + issues_routes.connect 'issues/:action' end map.with_options :controller => 'issue_relations', :conditions => {:method => :post} do |relations|