myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2911] trunk/app/views/relationships/_relationshi


From: noreply
Subject: [myexperiment-hackers] [2911] trunk/app/views/relationships/_relationships.rhtml: Fixed issue where removing an item from a pack that is in a relationship breaks the pack 's page
Date: Fri, 20 Jan 2012 08:25:31 -0500 (EST)

Revision
2911
Author
fbacall
Date
2012-01-20 08:25:30 -0500 (Fri, 20 Jan 2012)

Log Message

Fixed issue where removing an item from a pack that is in a relationship breaks the pack's page

Modified Paths

Diff

Modified: trunk/app/views/relationships/_relationships.rhtml (2910 => 2911)


--- trunk/app/views/relationships/_relationships.rhtml	2012-01-20 10:33:48 UTC (rev 2910)
+++ trunk/app/views/relationships/_relationships.rhtml	2012-01-20 13:25:30 UTC (rev 2911)
@@ -10,7 +10,7 @@
   <ol class="relationship_sentences">
     <% relationships.each do |relationship| %>
       <li>
-        <% if relationship.subject.available? %>
+        <% if relationship.subject && relationship.subject.available? %>
             <%= pack_entry_link(relationship.subject) -%>
         <% else %>
           <span class="deletedPackItem">deleted item</span>
@@ -22,7 +22,7 @@
           <%=h relationship.predicate.preferred_label.text.underscore.humanize.downcase -%>
         <% end %>
 
-        <% if relationship.objekt.available? %>
+        <% if relationship.objekt && relationship.objekt.available? %>
           <%= pack_entry_link(relationship.objekt) -%>.
         <% else %>
           <span class="deletedPackItem">deleted item</span>

reply via email to

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