Kaynağa Gözat

add admin user depart records

abiao 4 yıl önce
ebeveyn
işleme
498d12115b
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      app/models/product.rb

+ 2 - 2
app/models/product.rb

@@ -46,7 +46,7 @@ class Product < ActiveRecord::Base
     SIZE_ENUM =  []
     COLOR_ENUM =  []
     def get_size_enum
-        SIZE_ENUM.clear
+        #SIZE_ENUM.clear
         if SIZE_ENUM.length ==0 && !self.id.nil?
             linkSize = ProductAttrConfig.where("product_id=? and size_type='size'",self.relate_product_id).first
             if !linkSize.blank?
@@ -61,7 +61,7 @@ class Product < ActiveRecord::Base
     end
 
     def get_color_enum
-        COLOR_ENUM.clear
+        #COLOR_ENUM.clear
         if COLOR_ENUM.length==0 && !self.id.nil?
             linkColor = ProductAttrConfig.where("product_id=? and size_type='color'",self.relate_product_id).first
             if !linkColor.blank?