mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix(publish items): Filter out disabled items (#15268)
This commit is contained in:
@@ -50,6 +50,7 @@ def get_valid_items(search_value=''):
|
|||||||
'Item',
|
'Item',
|
||||||
fields=["*"],
|
fields=["*"],
|
||||||
filters={
|
filters={
|
||||||
|
'disabled': 0,
|
||||||
'item_name': ['like', '%' + search_value + '%'],
|
'item_name': ['like', '%' + search_value + '%'],
|
||||||
'publish_in_hub': 0
|
'publish_in_hub': 0
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user