From 00f6aef947f2a9726ef2cb2e3b99e0736881e287 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Thu, 30 Aug 2018 18:54:28 +0530 Subject: [PATCH] fix(publish items): Filter out disabled items (#15268) --- erpnext/hub_node/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/hub_node/api.py b/erpnext/hub_node/api.py index be81effe69..2a05dd2d12 100644 --- a/erpnext/hub_node/api.py +++ b/erpnext/hub_node/api.py @@ -50,6 +50,7 @@ def get_valid_items(search_value=''): 'Item', fields=["*"], filters={ + 'disabled': 0, 'item_name': ['like', '%' + search_value + '%'], 'publish_in_hub': 0 },