diff --git a/app/models/product_import/product_importer.rb b/app/models/product_import/product_importer.rb index 3bc66fa815..3b8671290f 100644 --- a/app/models/product_import/product_importer.rb +++ b/app/models/product_import/product_importer.rb @@ -100,7 +100,8 @@ module ProductImport entries[entry.line_number] = { attributes: entry.displayable_attributes, validates_as: entry.validates_as, - errors: entry.invalid_attributes + errors: entry.invalid_attributes, + product_validations: entry.product_validations } end entries.to_json diff --git a/app/views/admin/product_import/_errors_list.html.haml b/app/views/admin/product_import/_errors_list.html.haml index 787aabe76b..8397c7013b 100644 --- a/app/views/admin/product_import/_errors_list.html.haml +++ b/app/views/admin/product_import/_errors_list.html.haml @@ -7,3 +7,5 @@ ( {{entry.attributes.display_name}} ) %p.error{ng: {repeat: "(attribute, error) in entry.errors", show: "ignore_fields.indexOf(attribute) < 0" }}  -  {{error}} + %p.error{ng: {repeat: "(attribute, error) in entry.product_validations"}} +  -  {{error}}