From d1a87f7ba0679b5c1077a1f97e22437ec0323010 Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Thu, 17 Sep 2020 06:34:07 -0700 Subject: [PATCH] add oz and lb as allowed units in product import --- app/models/product_import/entry_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/product_import/entry_validator.rb b/app/models/product_import/entry_validator.rb index ce5af3091b..f563b90cd0 100644 --- a/app/models/product_import/entry_validator.rb +++ b/app/models/product_import/entry_validator.rb @@ -159,7 +159,7 @@ module ProductImport end def unit_fields_validation(entry) - unit_types = ['g', 'kg', 't', 'ml', 'l', 'kl', ''] + unit_types = ['g', 'oz', 'lb', 'kg', 't', 'ml', 'l', 'kl', ''] unless entry.units&.present? mark_as_invalid(entry, attribute: 'units',