Allow import to proceed when updating a product and description is set

This commit is contained in:
Matt-Yorkley
2019-04-01 13:23:14 +01:00
committed by Matt-Yorkley
parent 723499332a
commit 84040fd2a6

View File

@@ -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