aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-05-14 17:30:17 +0100
committerGareth Rees <gareth@mysociety.org>2015-06-04 13:51:17 +0100
commitf54a8301b951b9320f7cd0fcbc00355763f974c4 (patch)
tree65f9386b1eca211e9fa5e2a2437f85e382569b49
parent1b4cf23dd5fb1f07004c28bd44e38a3dad3426b9 (diff)
Directly return the associated IncomingMessage
InfoRequestEvent#incoming_message_selective_columns ends up returning the same thing.
-rw-r--r--app/views/request/_request_listing_via_event.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/request/_request_listing_via_event.html.erb b/app/views/request/_request_listing_via_event.html.erb
index 20bc5b2c8..43ab1b5c8 100644
--- a/app/views/request/_request_listing_via_event.html.erb
+++ b/app/views/request/_request_listing_via_event.html.erb
@@ -6,7 +6,7 @@ end %>
<div class="request_left">
<span class="head">
<% if event.is_incoming_message? %>
- <%= link_to highlight_words(event.info_request.title, @highlight_words), incoming_message_path(event.incoming_message_selective_columns("incoming_messages.id")) %>
+ <%= link_to highlight_words(event.info_request.title, @highlight_words), incoming_message_path(event.incoming_message) %>
<% elsif event.is_outgoing_message? and event.event_type == 'followup_sent' %>
<%= link_to highlight_words(event.info_request.title, @highlight_words), outgoing_message_path(event.outgoing_message) %>
<% elsif event.is_comment? %>