# HG changeset patch # User Chris Cannam # Date 1395392265 0 # Node ID f86e7009518463b135e0c3b82b8351a61be887aa # Parent f67d6e387088160960f7d056cb36f94f0761096a Avoid 500 if for some reason print_entry fails diff -r f67d6e387088 -r f86e70095184 plugins/redmine_bibliography/app/helpers/publications_helper.rb --- a/plugins/redmine_bibliography/app/helpers/publications_helper.rb Mon Feb 24 11:25:35 2014 +0000 +++ b/plugins/redmine_bibliography/app/helpers/publications_helper.rb Fri Mar 21 08:57:45 2014 +0000 @@ -96,7 +96,10 @@ def print_ieee_format(publication) Rails.cache.fetch("publication-#{publication.id}-ieee") do - publication.print_entry(:ieee).html_safe + entry = publication.print_entry(:ieee) + if entry + entry.html_safe + end end end