From c7ce597b7f391db72b834b8644755a7ac9eb1196 Mon Sep 17 00:00:00 2001 From: Mangesh-Khairnar Date: Fri, 27 Dec 2019 14:48:14 +0530 Subject: [PATCH] fix: return when Hub Tracked Item is empty --- erpnext/patches/v12_0/set_published_in_hub_tracked_item.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/v12_0/set_published_in_hub_tracked_item.py b/erpnext/patches/v12_0/set_published_in_hub_tracked_item.py index 7c4c011584..e54c7f315c 100644 --- a/erpnext/patches/v12_0/set_published_in_hub_tracked_item.py +++ b/erpnext/patches/v12_0/set_published_in_hub_tracked_item.py @@ -3,10 +3,10 @@ import frappe def execute(): frappe.reload_doc("Hub Node", "doctype", "Hub Tracked Item") - if frappe.db.a_row_exists("Hub Tracked Item"): + if not frappe.db.a_row_exists("Hub Tracked Item"): return frappe.db.sql(''' Update `tabHub Tracked Item` SET published = 1 - ''') \ No newline at end of file + ''')