fix: website showing disabled items in product list

This commit is contained in:
thefalconx33
2019-12-09 17:03:32 +05:30
parent 1e2be32860
commit f092e68a58

View File

@@ -336,7 +336,9 @@ def get_items(filters=None, search=None):
filter_condition = get_conditions(filters, 'and') filter_condition = get_conditions(filters, 'and')
where_conditions = ' and '.join( where_conditions = 'disabled = 0 and '
where_conditions += ' and '.join(
[condition for condition in [show_in_website_condition, search_condition, filter_condition] if condition] [condition for condition in [show_in_website_condition, search_condition, filter_condition] if condition]
) )