aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_request_controller.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-08-11 10:09:29 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-08-11 10:41:31 +0100
commit10e7ce5610731c073553072724c6ef7e44236781 (patch)
tree3261d268c245d76d3dfe6e3e39aea69078e724aa /app/controllers/admin_request_controller.rb
parent79a2047f04aad0d04b56aa8f81152e868b4e3951 (diff)
Show the rejected reason for the incoming message in question, not the most recent rejected reason for the info request in question. Fixes #129.
Diffstat (limited to 'app/controllers/admin_request_controller.rb')
-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 b3fb1ce40..e5de4f8b7 100644
--- a/app/controllers/admin_request_controller.rb
+++ b/app/controllers/admin_request_controller.rb
@@ -296,7 +296,7 @@ class AdminRequestController < AdminController
@info_requests = InfoRequest.guess_by_incoming_email(@raw_email.incoming_message)
# 3. Give a reason why it's in the holding pen
- last_event = @raw_email.incoming_message.info_request.get_last_event
+ last_event = InfoRequestEvent.find_by_incoming_message_id(@raw_email.incoming_message.id)
@rejected_reason = last_event.params[:rejected_reason]
end
end