Mercurial > hg > soundsoftware-site
changeset 1497:f86e70095184 live
Avoid 500 if for some reason print_entry fails
author | Chris Cannam |
---|---|
date | Fri, 21 Mar 2014 08:57:45 +0000 |
parents | f67d6e387088 |
children | abde837f1224 |
files | plugins/redmine_bibliography/app/helpers/publications_helper.rb |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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