Merge pull request #26504 from 18alantom/fix-ig-portal-field-filter
fix: check if field_filters is None
This commit is contained in:
commit
6fbb2d3507
@ -101,7 +101,7 @@ def get_products_html_for_website(field_filters=None, attribute_filters=None):
|
|||||||
return html
|
return html
|
||||||
|
|
||||||
def set_item_group_filters(field_filters):
|
def set_item_group_filters(field_filters):
|
||||||
if 'item_group' in field_filters:
|
if field_filters is not None and 'item_group' in field_filters:
|
||||||
field_filters['item_group'] = [ig[0] for ig in get_child_groups(field_filters['item_group'])]
|
field_filters['item_group'] = [ig[0] for ig in get_child_groups(field_filters['item_group'])]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user