From d6b217ec6e34e421400f2b94704f7a749148d574 Mon Sep 17 00:00:00 2001 From: Bohung Date: Tue, 13 Apr 2021 15:25:03 +0800 Subject: [PATCH] Fix bug. --- app/controllers/experiments_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/experiments_controller.rb b/app/controllers/experiments_controller.rb index 1cc9541..0f897a9 100644 --- a/app/controllers/experiments_controller.rb +++ b/app/controllers/experiments_controller.rb @@ -69,7 +69,7 @@ class ExperimentsController < ApplicationController subject_links = subject.subject_links.collect do |f| { "link_url" => f.url, - "link_title" => f.title + "link_title" => (f.title.blank? ? f.url : f.title) } end @@ -136,7 +136,7 @@ class ExperimentsController < ApplicationController subject_links = subject.subject_links.collect do |f| { "link_url" => f.url, - "link_title" => f.title + "link_title" => (f.title.blank? ? f.url : f.title) } end