diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-10 09:10:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-10 09:10:51 +0000 |
commit | 52a7fa6176c8248033b4734773e15dd8b60b2f20 (patch) | |
tree | 48ad634039fb55622a2ebbe63f005baf5c2b5cb1 /app/controllers/issues_controller.rb | |
parent | a1ae0aed238d3b49af69c895ac72f9b39684f980 (diff) | |
download | redmine-52a7fa6176c8248033b4734773e15dd8b60b2f20.tar.gz redmine-52a7fa6176c8248033b4734773e15dd8b60b2f20.zip |
Changed IssuesController#destroy to DELETE only.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8150 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r-- | app/controllers/issues_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 7978bc001..3ce25a134 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -54,10 +54,6 @@ class IssuesController < ApplicationController helper :gantt include Redmine::Export::PDF - verify :method => [:post, :delete], - :only => :destroy, - :render => { :nothing => true, :status => :method_not_allowed } - verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed } verify :method => :post, :only => :bulk_update, :render => {:nothing => true, :status => :method_not_allowed } verify :method => :put, :only => :update, :render => {:nothing => true, :status => :method_not_allowed } @@ -225,6 +221,7 @@ class IssuesController < ApplicationController redirect_back_or_default({:controller => 'issues', :action => 'index', :project_id => @project}) end + verify :method => :delete, :only => :destroy, :render => { :nothing => true, :status => :method_not_allowed } def destroy @hours = TimeEntry.sum(:hours, :conditions => ['issue_id IN (?)', @issues]).to_f if @hours > 0 |