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