From 8d96eedb5125e2b655ff55b1f391ac9130758968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 31 Dec 2022 16:10:36 +0800 Subject: [PATCH] fix error --- app/views/admin/asks/do_export.xlsx.axlsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/asks/do_export.xlsx.axlsx b/app/views/admin/asks/do_export.xlsx.axlsx index d772f7d..e9c24ef 100644 --- a/app/views/admin/asks/do_export.xlsx.axlsx +++ b/app/views/admin/asks/do_export.xlsx.axlsx @@ -42,7 +42,7 @@ wb.add_worksheet(name: "Ask Question") do |sheet| text = I18n.t('ask.no') end when 'situation' - text = situations[ask_question.situation].join('/') rescue '' + text = situations[ask_question.situation].collect{|k,v| v}.join('/') rescue '' end row_group[field] = text end