From 9299df339bfe6f37e9330aa349f5bc2da15e5b44 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 30 Aug 2022 18:20:45 +0530 Subject: [PATCH] chore: dont rerun patch Rerunning this isn't required and might cause unexepcted behaviour [skip ci] --- frappe/patches.txt | 2 +- frappe/patches/v14_0/update_multistep_webforms.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frappe/patches.txt b/frappe/patches.txt index b90d02e7bc..e4facb7e3d 100644 --- a/frappe/patches.txt +++ b/frappe/patches.txt @@ -210,4 +210,4 @@ frappe.patches.v14_0.set_document_expiry_default frappe.patches.v14_0.delete_data_migration_tool frappe.patches.v14_0.set_suspend_email_queue_default frappe.patches.v14_0.different_encryption_key -frappe.patches.v14_0.update_multistep_webforms #30-08-2022 +frappe.patches.v14_0.update_multistep_webforms diff --git a/frappe/patches/v14_0/update_multistep_webforms.py b/frappe/patches/v14_0/update_multistep_webforms.py index c87663c254..9919ef6e15 100644 --- a/frappe/patches/v14_0/update_multistep_webforms.py +++ b/frappe/patches/v14_0/update_multistep_webforms.py @@ -2,8 +2,6 @@ import frappe def execute(): - frappe.reload_doctype("Web Form") - if not frappe.db.has_column("Web Form", "is_multi_step_form"): return @@ -12,4 +10,3 @@ def execute(): for web_form_field in web_form_fields: if web_form_field.fieldtype == "Section Break" and web_form_field.idx != 1: frappe.db.set_value("Web Form Field", web_form_field.name, "fieldtype", "Page Break") - frappe.db.commit()