From 68b59ab7a6ddacff71e4c945b9a545529f911a6f Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 20 Jun 2023 13:14:52 +0100 Subject: [PATCH] Remove array syntax on new product form for product image (cherry picked from commit 24aa55e053c7665827717257d39df8bce0571e46) --- app/views/spree/admin/products/new.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/products/new.html.haml b/app/views/spree/admin/products/new.html.haml index f514f33084..a885d77300 100644 --- a/app/views/spree/admin/products/new.html.haml +++ b/app/views/spree/admin/products/new.html.haml @@ -101,7 +101,7 @@ .row = image_tag Spree::Image.default_image_url(:product), class: "four columns alpha" .row - = f.fields_for 'image_attributes[]', f.object.build_image do |image_fields| + = f.fields_for 'image_attributes', f.object.build_image do |image_fields| = image_fields.file_field :attachment .sixteen.columns.alpha .form-buttons.filter-actions.actions