Skip to content

Commit

Permalink
AR-1788 make sure there is a relator before trying to show it please
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun authored and marktriggs committed Jun 19, 2017
1 parent a22dad1 commit bd221d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public-new/app/views/shared/_present_list.html.erb
Expand Up @@ -26,7 +26,9 @@
<a href="<%= item['uri'] %>">
<%= item['title'] %>
</a>
(<%= t("enumerations.linked_agent_archival_record_relators.#{item['_relator']}") %>)
<% if item['_relator'] %>
(<%= t("enumerations.linked_agent_archival_record_relators.#{item['_relator']}", :default => item['_relator']) %>)
<% end %>
<%= item['_terms'].map{|t| " -- #{t['term']}"}.join %>
<% else %>
<% if item.kind_of? Hash %>
Expand Down

0 comments on commit bd221d2

Please sign in to comment.