Skip to content

Commit

Permalink
Merge pull request #220 from alphagov/fix-fatality-notice-preview
Browse files Browse the repository at this point in the history
Handle nil field of operation in fatality notice view
  • Loading branch information
gpeng authored Jan 4, 2017
2 parents b8198c0 + d23c121 commit 85998eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/content_items/fatality_notice.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="grid-row">
<div class="column-two-thirds">
<%= render 'govuk_component/title',
context: "Operations in #{@content_item.field_of_operation.title}",
context: "Operations in #{@content_item.field_of_operation.try(:title)}",
title: @content_item.title,
average_title_length: "long"
%>
Expand Down

0 comments on commit 85998eb

Please sign in to comment.