From 11a77c634b061b6155b1299e6278b0814092c4f1 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 12 Jan 2016 20:33:24 +0800 Subject: [PATCH] removed blank columns --- app/models/research.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/research.rb b/app/models/research.rb index 84de7fe..b502fc9 100644 --- a/app/models/research.rb +++ b/app/models/research.rb @@ -57,7 +57,7 @@ class Research pd_title = [] fields_to_show.each do |t| - fields_to_remove << t if datas.where(t.to_sym.ne => nil).count == 0 + fields_to_remove << t if (datas.where(t.to_sym.ne => nil, t.to_sym.ne => "").count == 0 rescue false) pd_title << { "plugin_data_title" => I18n.t("personal_research.#{t}") } if !fields_to_remove.include?(t)