mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update units when variant unit name is edited
This commit is contained in:
@@ -431,7 +431,7 @@ module Spree
|
||||
end
|
||||
|
||||
def update_units
|
||||
return unless saved_change_to_variant_unit?
|
||||
return unless saved_change_to_variant_unit? || saved_change_to_variant_unit_name?
|
||||
|
||||
option_types.delete self.class.all_variant_unit_option_types
|
||||
option_types << variant_unit_option_type if variant_unit.present?
|
||||
|
||||
Reference in New Issue
Block a user