diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-05-12 16:48:44 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-05-12 16:48:44 +0100 |
commit | 8f9984b66c7ce5d38b07bb6dfef28e914894a92c (patch) | |
tree | 1874b9165028b6969f6274303878bd2ce6b510d0 /app/models/info_request.rb | |
parent | 7d9de8a5ffe67e6bc49271a082c1d8e43dbb0f03 (diff) | |
parent | 9329b7f06d8a36ecb901d2172836ab8f5b2cdf3b (diff) |
Merge branch 'initial_request_text-2' into rails-3-develop
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 0ca3a1279..01d5f5c52 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -804,8 +804,9 @@ public # Text from the the initial request, for use in summary display def initial_request_text - return '' if outgoing_messages.empty? # mainly for use with incomplete fixtures - outgoing_messages.first.get_text_for_indexing + return '' if outgoing_messages.empty? + body_opts = { :censor_rules => applicable_censor_rules } + outgoing_messages.first.try(:get_text_for_indexing, true, body_opts) or '' end # Returns index of last event which is described or nil if none described. |