aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-05-29 17:49:12 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-05-29 17:49:12 +0100
commita4031a7bbaba1f8516268511fe22c9adbe82a660 (patch)
tree1a207094b4713ca5c5913b8cc5bc5f7b17160008
parentb3cad7d37815a651bd10c6dfe3d91c3ff42f995d (diff)
Always supply admins with reason why a request was sent to the holding pen, even if it's "unknown"
-rw-r--r--app/controllers/admin_request_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb
index a4fb0f351..522e1cd39 100644
--- a/app/controllers/admin_request_controller.rb
+++ b/app/controllers/admin_request_controller.rb
@@ -312,7 +312,7 @@ class AdminRequestController < AdminController
# 3. Give a reason why it's in the holding pen
last_event = InfoRequestEvent.find_by_incoming_message_id(@raw_email.incoming_message.id)
- @rejected_reason = last_event.params[:rejected_reason]
+ @rejected_reason = last_event.params[:rejected_reason] || "unknown reason"
end
end