Include unexpected validation errors

This commit is contained in:
Matt-Yorkley
2018-11-18 20:41:07 +00:00
parent 5c208a68c6
commit a5407d780c
2 changed files with 4 additions and 1 deletions

View File

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

View File

@@ -7,3 +7,5 @@
( {{entry.attributes.display_name}} )
%p.error{ng: {repeat: "(attribute, error) in entry.errors", show: "ignore_fields.indexOf(attribute) < 0" }}
&nbsp;-&nbsp; {{error}}
%p.error{ng: {repeat: "(attribute, error) in entry.product_validations"}}
&nbsp;-&nbsp; {{error}}