diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-05-24 11:49:34 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-05-24 11:49:34 +0100 |
commit | 774c199fa52b98b6780928a602dfdee1b2fce711 (patch) | |
tree | d972b799c89eb5be11cfee3c93cf5bd36956c741 /app/controllers/request_controller.rb | |
parent | b89fe3a3b65cad4d6cf0c044b2569e0ea8e8e163 (diff) |
Test for reporting functionality
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 06a84d99d..94fbcde29 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -660,8 +660,10 @@ class RequestController < ApplicationController info_request.set_described_state('attention_requested') info_request.attention_requested = true # tells us if attention has ever been requested info_request.save! + flash[:notice] = _("This request has been reported for administrator attention") + else + flash[:notice] = _("This request has already been reported for administrator attention") end - flash[:notice] = _("This request has been reported for administrator attention") redirect_to request_url(info_request) end |