myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2137] trunk/app/views/messages/show.rhtml: Messa


From: noreply
Subject: [myexperiment-hackers] [2137] trunk/app/views/messages/show.rhtml: Messages.
Date: Thu, 26 Mar 2009 09:51:42 -0400 (EDT)

Revision
2137
Author
alekses6
Date
2009-03-26 09:51:41 -0400 (Thu, 26 Mar 2009)

Log Message

Messages. Added a check to make sure that the displayed message (when it's a reply to something) is shown properly even when the original message was deleted.

Modified Paths

Diff

Modified: trunk/app/views/messages/show.rhtml (2136 => 2137)


--- trunk/app/views/messages/show.rhtml	2009-03-26 12:30:22 UTC (rev 2136)
+++ trunk/app/views/messages/show.rhtml	2009-03-26 13:51:41 UTC (rev 2137)
@@ -18,7 +18,8 @@
 	</li>
 </ul>
 
-<% if @message.reply? %>
+<% # this makes sure that the message is a reply to something, and that the original message still exists -%>
+<% if @message.reply? && @message.reply_to && address@hidden %>
   <br/>
   <p class="box_infotext">
     <b>This message is a reply to:</b> <%= link_to h(@message.reply_to.subject), message_path(@message.reply_to) %>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]