From bfd8b88b39e7d4ccd362ebee98dc009cf8152dcd Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 14 May 2014 18:57:35 +0530 Subject: [PATCH] Set frappe.flags.in_patch when running a patch --- frappe/modules/patch_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/modules/patch_handler.py b/frappe/modules/patch_handler.py index 2f7fee8055..e7dbd01ff5 100644 --- a/frappe/modules/patch_handler.py +++ b/frappe/modules/patch_handler.py @@ -93,6 +93,7 @@ def executed(patchmodule): def block_user(block): """stop/start execution till patch is run""" + frappe.local.flags.in_patch = block frappe.db.begin() msg = "Patches are being executed in the system. Please try again in a few moments." frappe.db.set_global('__session_status', block and 'stop' or None)