diff --git a/smart_service/transactions/doctype/publish/publish.py b/smart_service/transactions/doctype/publish/publish.py index 748c6ac..04edc60 100644 --- a/smart_service/transactions/doctype/publish/publish.py +++ b/smart_service/transactions/doctype/publish/publish.py @@ -66,6 +66,7 @@ class Publish(Document): # Update system and variant mapping ststus if self.publish_status == "Published" and self.publish_type == "Global": + current_db_name = frappe.conf.get("db_name") global_publish = frappe.db.sql("""select name from {0}.`tabPublish` where global_publish = '{1}'""".format( current_db_name, self.name), as_dict=True) for global_name in global_publish: