From 84040fd2a6506879342e5d4342fc7b82bb412412 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley Date: Mon, 1 Apr 2019 13:23:14 +0100 Subject: [PATCH] Allow import to proceed when updating a product and `description` is set --- app/models/product_import/entry_validator.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/product_import/entry_validator.rb b/app/models/product_import/entry_validator.rb index f50e3cd0ac..de898080e4 100644 --- a/app/models/product_import/entry_validator.rb +++ b/app/models/product_import/entry_validator.rb @@ -314,6 +314,7 @@ module ProductImport def product_field_errors(entry, existing_product) EntryValidator.non_updatable_fields.each do |display_name, attribute| next if attributes_match?(attribute, existing_product, entry) || attributes_blank?(attribute, existing_product, entry) + next if attribute == :description mark_as_invalid(entry, attribute: display_name, error: I18n.t('admin.product_import.model.not_updatable')) end end