From 515542730516b4284ba2a6307186315b0d962679 Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 2 Nov 2019 13:54:18 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 4dc00bd..4d156af 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -76,7 +76,7 @@ class PersonalJournalsController < ApplicationController when 'language' t << { 'value' => (!journal_paper.language.nil? ? t(journal_paper.language.to_s) : '') } when 'url' - t << { 'value' => ("#{journal_paper.url}" rescue '')} + t << { 'value' => journal_paper.url.to_s.blank? ? "" : "#{journal_paper.url}"} when 'authors' t << { 'value' => get_authors_show(journal_paper) } else