From adb231074590b16c6e7e647c93e625cd1c4528e5 Mon Sep 17 00:00:00 2001 From: wmcheng Date: Tue, 4 Dec 2018 22:45:02 +0800 Subject: [PATCH] Update lab.rb Add title --- app/models/lab.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/lab.rb b/app/models/lab.rb index 2cace76..d7b5db7 100644 --- a/app/models/lab.rb +++ b/app/models/lab.rb @@ -71,7 +71,7 @@ class Lab pd_data = [] fields_to_show.collect do |t| if t == "lab_title" - pd_data << { "data_title" => "#{p.send(t)}" } + pd_data << { "data_title" => "#{p.send(t)}" } else pd_data << { "data_title" => p.send(t) } end