fix: show child item group items on portal
This commit is contained in:
parent
7e05bea6a9
commit
a4eba7a409
@ -87,8 +87,8 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
|||||||
if not field_filters:
|
if not field_filters:
|
||||||
field_filters = {}
|
field_filters = {}
|
||||||
|
|
||||||
# Ensure the query remains within current item group
|
# Ensure the query remains within current item group & sub group
|
||||||
field_filters['item_group'] = self.name
|
field_filters['item_group'] = [ig[0] for ig in get_child_groups(self.name)]
|
||||||
|
|
||||||
engine = ProductQuery()
|
engine = ProductQuery()
|
||||||
context.items = engine.query(attribute_filters, field_filters, search, start, item_group=self.name)
|
context.items = engine.query(attribute_filters, field_filters, search, start, item_group=self.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user