]> source.dussan.org Git - redmine.git/commitdiff
Removed conditions on HTTP methods.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 8 Dec 2012 11:31:29 +0000 (11:31 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 8 Dec 2012 11:31:29 +0000 (11:31 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10962 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/trackers_controller.rb

index 78c907053c636ec943bc3c963ca34e7fab09d1e4..938e6e2bc4e52b1adf2b86d64a04e34de996b55e 100644 (file)
@@ -42,7 +42,7 @@ class TrackersController < ApplicationController
 
   def create
     @tracker = Tracker.new(params[:tracker])
-    if request.post? and @tracker.save
+    if @tracker.save
       # workflow copy
       if !params[:copy_workflow_from].blank? && (copy_from = Tracker.find_by_id(params[:copy_workflow_from]))
         @tracker.workflow_rules.copy(copy_from)
@@ -62,7 +62,7 @@ class TrackersController < ApplicationController
 
   def update
     @tracker = Tracker.find(params[:id])
-    if request.put? and @tracker.update_attributes(params[:tracker])
+    if @tracker.update_attributes(params[:tracker])
       flash[:notice] = l(:notice_successful_update)
       redirect_to :action => 'index'
       return