Sfoglia il codice sorgente

chore: dont rerun patch

Rerunning this isn't required and might cause unexepcted behaviour

[skip ci]
version-14
Ankush Menat 2 anni fa
parent
commit
9299df339b
2 ha cambiato i file con 1 aggiunte e 4 eliminazioni
  1. +1
    -1
      frappe/patches.txt
  2. +0
    -3
      frappe/patches/v14_0/update_multistep_webforms.py

+ 1
- 1
frappe/patches.txt Vedi File

@@ -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

+ 0
- 3
frappe/patches/v14_0/update_multistep_webforms.py Vedi File

@@ -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()

Caricamento…
Annulla
Salva