From 444d308f06b2df03d527684e4dcc455677d12789 Mon Sep 17 00:00:00 2001 From: Bohung Date: Sat, 19 Mar 2022 11:44:25 +0800 Subject: [PATCH] Fix bug. --- app/views/admin/surveys/answer_sets.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/surveys/answer_sets.html.erb b/app/views/admin/surveys/answer_sets.html.erb index 96cc55d..9fbdc58 100644 --- a/app/views/admin/surveys/answer_sets.html.erb +++ b/app/views/admin/surveys/answer_sets.html.erb @@ -285,7 +285,7 @@ <% else %> NA <% end %> - <%= (@is_answer_list ? sa.created_at : sa.last_modified).strftime((I18n.locale == :zh_tw ? "%Y/%m/%d %H:%M" : "%h %d, %Y - %H:%M")) rescue nil %> + <%= (answers_nil ? sa.last_modified : sa.created_at).strftime((I18n.locale == :zh_tw ? "%Y/%m/%d %H:%M" : "%h %d, %Y - %H:%M")) rescue nil %> <% if @answer_repeat && !@is_answer_list %> <%= t("survey.view") %>(<%=sa.survey_answer_ids.count%>)