[fix] minor fix in get_context for item variants (#8791)

This commit is contained in:
Makarand Bauskar 2017-05-12 11:23:23 +05:30 committed by Nabin Hait
parent 62c7deee00
commit e8270fe21c

View File

@ -325,7 +325,7 @@ class Item(WebsiteGenerator):
def set_disabled_attributes(self, context):
"""Disable selection options of attribute combinations that do not result in a variant"""
if not self.attributes:
if not self.attributes or not self.has_variants:
return
context.disabled_attributes = {}