From 218d07c90d4a3fb412c0cd7552432b8dc301fd6b Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Tue, 13 Aug 2024 12:11:48 +1000 Subject: [PATCH] Fix product import controller --- app/controllers/admin/product_import_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/product_import_controller.rb b/app/controllers/admin/product_import_controller.rb index a2dc50ce43..54a9ac84d5 100644 --- a/app/controllers/admin/product_import_controller.rb +++ b/app/controllers/admin/product_import_controller.rb @@ -21,8 +21,9 @@ module Admin @importer = ProductImport::ProductImporter.new(File.new(@filepath), spree_current_user, params[:settings]) @original_filename = params[:file].try(:original_filename) - @non_updatable_fields = ProductImport::EntryValidator.non_updatable_fields - + @non_updatable_fields = ProductImport::EntryValidator.non_updatable_product_fields.merge( + ProductImport::EntryValidator.non_updatable_variant_fields + ) return if contains_errors? @importer @ams_data = ams_data