Fix master options_text display on front end

This commit is contained in:
Rob H
2014-05-30 18:39:41 +10:00
parent 2a8ef182f2
commit bf4d83aecc
2 changed files with 2 additions and 2 deletions

View File

@@ -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 }

View File

@@ -3,7 +3,7 @@
&nbsp;
.small-4.columns
({{ product.master.options_text }})
{{ product.master.options_text }}
-# WITHOUT GROUP BUY
.small-5.columns{"bo-if" => "!product.group_buy"}