Removed conditions on HTTP methods.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10962 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-12-08 11:31:29 +00:00
parent 0bd70d4680
commit 8ead410f98
1 changed files with 2 additions and 2 deletions

View 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