From e8f8079cf8c0788a80f8188b4c94ea9a55e2bf33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 24 Mar 2024 10:25:45 +0800 Subject: [PATCH] Fix bug. --- 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 e9c24ef..a8d8d33 100644 --- a/app/views/admin/asks/do_export.xlsx.axlsx +++ b/app/views/admin/asks/do_export.xlsx.axlsx @@ -29,7 +29,7 @@ wb.add_worksheet(name: "Ask Question") do |sheet| when 'ask_category_id' text = categories[ask_question.category_id].title rescue '' when 'sex' - text = ask_question.sex + sex = ask_question.sex if ['male','female'].include? sex.to_s text = I18n.t("mongoid.attributes.ask_question.#{sex}") else