mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 19:25:16 +00:00
fix: website showing disabled items in product list
This commit is contained in:
@@ -335,8 +335,10 @@ def get_items(filters=None, search=None):
|
||||
search_condition = get_conditions(or_filters, 'or')
|
||||
|
||||
filter_condition = get_conditions(filters, 'and')
|
||||
|
||||
where_conditions = 'disabled = 0 and '
|
||||
|
||||
where_conditions = ' and '.join(
|
||||
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