mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix master options_text display on front end
This commit is contained in:
@@ -155,7 +155,7 @@ Spree::Product.class_eval do
|
||||
end
|
||||
|
||||
def update_units
|
||||
if variant_unit_changed?
|
||||
if variant_unit_changed? && !variant_unit_change.first.nil?
|
||||
option_types.delete self.class.all_variant_unit_option_types
|
||||
option_types << variant_unit_option_type if variant_unit.present?
|
||||
variants_including_master.each { |v| v.delete_unit_option_values }
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
.small-4.columns
|
||||
({{ product.master.options_text }})
|
||||
{{ product.master.options_text }}
|
||||
|
||||
-# WITHOUT GROUP BUY
|
||||
.small-5.columns{"bo-if" => "!product.group_buy"}
|
||||
|
||||
Reference in New Issue
Block a user