mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Include unexpected validation errors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user