mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update app/models/product_import/entry_validator.rb
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -73,7 +73,7 @@ module ProductImport
|
||||
'variant_unit_scale', 'primary_taxon_id')
|
||||
)
|
||||
new_variant.save
|
||||
if entry.attributes['unit_type'].present? || entry.attributes['variant_unit_name'].present?
|
||||
if new_variant.persisted?
|
||||
if entry.attributes['on_demand'].present?
|
||||
new_variant.on_demand = entry.attributes['on_demand']
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user