diff options
author | francis <francis> | 2008-01-02 18:16:39 +0000 |
---|---|---|
committer | francis <francis> | 2008-01-02 18:16:39 +0000 |
commit | 8aa07650c258427620285ca261edfed3ad511218 (patch) | |
tree | 8bf3b99384afb18448ee2af0d5ea183628f9dbb1 /app/models/info_request.rb | |
parent | 1b47360b13744a61e46c426934573caf46f0eb86 (diff) |
Tiny bits.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 8eab0cb23..57a1a422f 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -17,7 +17,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.20 2008-01-02 18:14:40 francis Exp $ +# $Id: info_request.rb,v 1.21 2008-01-02 18:16:39 francis Exp $ require 'digest/sha1' @@ -144,6 +144,9 @@ class InfoRequest < ActiveRecord::Base # Text from the the initial request, for use in summary display def initial_request_text + if outgoing_messages.empty? # mainly for use with incomplete fixtures + return "" + end excerpt = outgoing_messages[0].body excerpt.sub!(/Dear .+,/, "") return excerpt |