From 3b9e5d153687d07e71402379018a1a2342078bc1 Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 15 Dec 2022 18:16:30 +0800 Subject: [PATCH] Fix link. --- app/models/book.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/book.rb b/app/models/book.rb index f56f273..905af9b 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -114,7 +114,7 @@ class Book link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_book') url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) tmp_title = p.send(t) - pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } + pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } when "publish_date", "publication_date" pd = "" if !p.publication_date.nil? @@ -134,7 +134,7 @@ class Book link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_book') url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) tmp_title = p.create_link - pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } + pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } else pd_data << { "data_title" => p.send(t) } end