From 453bc511d79cb21c125bc897cbf88b3a8e298d91 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:06:53 +0800 Subject: [PATCH] fix error --- app/controllers/admin/asks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/asks_controller.rb b/app/controllers/admin/asks_controller.rb index 8c7c903..2d70105 100644 --- a/app/controllers/admin/asks_controller.rb +++ b/app/controllers/admin/asks_controller.rb @@ -460,7 +460,7 @@ class Admin::AsksController < OrbitAdminController end ask_category_settings[nil] = ask_default_setting fields_with_key_group[nil] = get_fields_with_key(ask_default_setting) - situations = AskTicketStatus.all.collect{|situation| [situation.key, situation.get_title_translations]} + situations = AskTicketStatus.all.collect{|situation| [situation.key, situation.get_title_translations]}.to_h render xlsx: 'do_export.xlsx', handlers: ['axlsx'], filename: "Questions-#{date_start}-#{date_end}.xlsx",