mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
fix: website showing disabled items in product list
This commit is contained in:
@@ -336,7 +336,9 @@ def get_items(filters=None, search=None):
|
||||
|
||||
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]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user