From d8ee2ec656bc42172f55c30be7b4656d1519457e Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 31 Oct 2019 23:34:04 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 8b3c826..4ed82b5 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -72,6 +72,8 @@ class PersonalJournalsController < ApplicationController t << { 'value' => (journal_paper.journal_paper_type.title rescue '') } when 'language' t << { 'value' => (!journal_paper.language.nil? ? t(journal_paper.language.to_s) : '') } + when 'url' + t << { 'value' => ("#{journal_paper.url}" rescue ''} else t << { 'value' => (journal_paper.send(fs) rescue '') } end