mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 21:48:27 +00:00
Merge pull request #46459 from frappe/mergify/bp/version-15-hotfix/pr-46452
fix: sla fields patch (backport #46452)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user