Merge pull request #46452 from mihir-kandoi/fix_sla_fields_patch

fix: sla fields patch
This commit is contained in:
rohitwaghchaure
2025-03-11 23:37:10 +05:30
committed by GitHub

View File

@@ -9,10 +9,10 @@ def execute():
if doctype == "Issue":
continue
if frappe.db.exists("Custom Field", {"fieldname": doctype + "-resolution_by"}):
if frappe.db.exists("Custom Field", {"name": doctype + "-resolution_by"}):
rename_fieldname(doctype + "-resolution_by", "sla_resolution_by")
if frappe.db.exists("Custom Field", {"fieldname": doctype + "-resolution_date"}):
if frappe.db.exists("Custom Field", {"name": doctype + "-resolution_date"}):
rename_fieldname(doctype + "-resolution_date", "sla_resolution_date")
rename_field("Issue", "resolution_by", "sla_resolution_by")