aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-08-21 00:41:44 +0000
committerfrancis <francis>2008-08-21 00:41:44 +0000
commitc9d8f9d79dedfacd7b3c1c5666f80f2679705753 (patch)
tree4302e253978ab5c6c960a7874d1be6582c9dd61b /app/models/info_request.rb
parent1794204e0642962f723f5f928225d2deac7dd667 (diff)
When showing last message sent for followups (not replies) only
show actual messages with text, don't show resends.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index e6ac03d72..af1d8b38a 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -23,7 +23,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: info_request.rb,v 1.129 2008-08-20 23:56:21 francis Exp $
+# $Id: info_request.rb,v 1.130 2008-08-21 00:41:44 francis Exp $
require 'digest/sha1'
require File.join(File.dirname(__FILE__),'../../vendor/plugins/acts_as_xapian/lib/acts_as_xapian')
@@ -527,7 +527,7 @@ public
# The last outgoing message
def get_last_outgoing_event
for e in self.info_request_events.reverse
- if [ 'sent', 'resent', 'followup_sent', 'followup_resent' ].include?(e.event_type)
+ if [ 'sent', 'followup_sent' ].include?(e.event_type)
return e
end
end