Forráskód Böngészése

add admin user depart records

abiao 4 éve
szülő
commit
24fdae1c2a
1 módosított fájl, 2 hozzáadás és 2 törlés
  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?
@@ -65,7 +65,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?