summaryrefslogtreecommitdiffstats
path: root/app/controllers/issues_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-26 21:33:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-26 21:33:44 +0000
commit95cc65f14e02efd18cbb6716a0e0fdf329dae144 (patch)
tree6e40d3e7cc84052a0dff14c7ebd8b1b5f78e53c2 /app/controllers/issues_controller.rb
parentb3a3d3e2fab59c542c40135b242364780e9a9768 (diff)
downloadredmine-95cc65f14e02efd18cbb6716a0e0fdf329dae144.tar.gz
redmine-95cc65f14e02efd18cbb6716a0e0fdf329dae144.zip
replaced deprecated controller instance variables: @params, @session, @request
git-svn-id: http://redmine.rubyforge.org/svn/trunk@127 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r--app/controllers/issues_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 94e036ab3..7a3679386 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -72,7 +72,7 @@ class IssuesController < ApplicationController
#@history.status = @issue.status
if @issue.save
flash[:notice] = l(:notice_successful_update)
- Mailer.deliver_issue_edit(journal) if Permission.find_by_controller_and_action(@params[:controller], @params[:action]).mail_enabled?
+ Mailer.deliver_issue_edit(journal) if Permission.find_by_controller_and_action(params[:controller], params[:action]).mail_enabled?
redirect_to :action => 'show', :id => @issue
return
end
@@ -97,7 +97,7 @@ class IssuesController < ApplicationController
@issue.status = @new_status
if @issue.update_attributes(params[:issue])
flash[:notice] = l(:notice_successful_update)
- Mailer.deliver_issue_edit(journal) if Permission.find_by_controller_and_action(@params[:controller], @params[:action]).mail_enabled?
+ Mailer.deliver_issue_edit(journal) if Permission.find_by_controller_and_action(params[:controller], params[:action]).mail_enabled?
redirect_to :action => 'show', :id => @issue
end
rescue ActiveRecord::StaleObjectError