From c9e040fb245ba57f35d6c66d3e4525477d43b38e Mon Sep 17 00:00:00 2001 From: mogaminsk <5103195+mgmn@users.noreply.github.com> Date: Sat, 6 May 2023 01:10:10 +0900 Subject: [PATCH] Fix import data field type (#24874) --- app/views/settings/imports/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/settings/imports/index.html.haml b/app/views/settings/imports/index.html.haml index f55d85079..02c3f4eb3 100644 --- a/app/views/settings/imports/index.html.haml +++ b/app/views/settings/imports/index.html.haml @@ -7,7 +7,7 @@ .fields-row .fields-group.fields-row__column.fields-row__column-6 - = f.input :data, wrapper: :with_block_label, hint: t('simple_form.hints.imports.data') + = f.input :data, as: :file, wrapper: :with_block_label, hint: t('simple_form.hints.imports.data') .fields-group.fields-row__column.fields-row__column-6 = f.input :mode, as: :radio_buttons, collection: Import::MODES, label_method: ->(mode) { safe_join([I18n.t("imports.modes.#{mode}"), content_tag(:span, I18n.t("imports.modes.#{mode}_long"), class: 'hint')]) }, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li'