Fixed validation to prevent duplication of Item Variants in case of Numeric Attributes

This commit is contained in:
Neil Trini Lasrado 2015-08-26 12:59:29 +05:30
parent b6398be232
commit 755f1f6841

View File

@ -572,7 +572,7 @@ def find_variant(item, args):
for attribute, value in args.items():
for row in variant.attributes:
if row.attribute==attribute and row.attribute_value==value:
if row.attribute==attribute and row.attribute_value== cstr(value):
# this row matches
match_count += 1
break