aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-09-12 20:07:18 +0000
committerfrancis <francis>2008-09-12 20:07:18 +0000
commite062b700e107a32ccd86a6c65381dffd5fb6d87e (patch)
tree1535b8c0cd974e6b679f3827e15829ce0924d9ee
parent0456027a78af2bebc871101ffef03710d91480ca (diff)
Oops. this is sometimes called with nil
-rw-r--r--app/views/request/_correspondence.rhtml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/request/_correspondence.rhtml b/app/views/request/_correspondence.rhtml
index f7e6870e0..6862f1f7d 100644
--- a/app/views/request/_correspondence.rhtml
+++ b/app/views/request/_correspondence.rhtml
@@ -4,7 +4,10 @@ if !info_request_event.nil? && info_request_event.event_type == 'response'
end
# cache against all the parameters that there are to this partial
-cache_name = "correspondence/" + info_request_event.id.to_s
+cache_name = ""
+if !info_request_event.nil?
+ cache_name = cache_name + "correspondence/" + info_request_event.id.to_s
+end
if !incoming_message.nil?
cache_name = cache_name + "/incoming_message/" + incoming_message.id.to_s
end