diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-22 15:02:30 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-22 15:02:30 +1100 |
commit | ca4ae410e70ab490ae4c8cad8839f41783c89ef7 (patch) | |
tree | d97be8750f49db30865e4948b1a0e29e9486e206 /app/controllers/request_controller.rb | |
parent | 661ad52ef88de7afcbd7820d8283057764f4d1ac (diff) |
Extract method
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index e12c408ea..12ba1a3a9 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -687,9 +687,7 @@ class RequestController < ApplicationController elsif info_request.attention_requested flash[:notice] = _("This request has already been reported for administrator attention") else - info_request.set_described_state('attention_requested', @user, "Reason: #{params[:reason]}\n\n#{params[:message]}") - info_request.attention_requested = true # tells us if attention has ever been requested - info_request.save! + info_request.report!(params[:reason], params[:message], @user) flash[:notice] = _("This request has been reported for administrator attention") end redirect_to request_url(info_request) |