Browse Source

bugfix editing variants

chemi ledon 7 năm trước cách đây
mục cha
commit
46f2013075
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/models/product.rb

+ 1 - 0
app/models/product.rb

@@ -352,6 +352,7 @@ class Product < ActiveRecord::Base
         @products_variant.is_parent = false
         @products_variant.sku = sku + (index + 1).to_s + "A"
         @products_variant.category_ids = category_ids
+        @products_variant.barcode = ''
         attrs_json = {}
         if combination.is_a?(Array)
           combination.each do |attrib|