patch: set apply_to as customer
diff --git a/erpnext/patches/v12_0/set_priority_for_support.py b/erpnext/patches/v12_0/set_priority_for_support.py
index 53aed92..0a12ffa 100644
--- a/erpnext/patches/v12_0/set_priority_for_support.py
+++ b/erpnext/patches/v12_0/set_priority_for_support.py
@@ -37,7 +37,11 @@
 		"resolution_time", "resolution_time_period"]):
 
 		doc = frappe.get_doc("Service Level Agreement", service_level_agreement.name)
-		doc.service_level_agreement_name = service_level_agreement.name
+
+		if doc.customer:
+			doc.append_to = "Customer"
+			doc.entity = doc.customer
+
 		doc.append("priorities", {
 			"priority": service_level_agreement.priority,
 			"default_priority": 1,
diff --git a/erpnext/support/doctype/issue/test_issue.py b/erpnext/support/doctype/issue/test_issue.py
index 22e00c6..1a793a6 100644
--- a/erpnext/support/doctype/issue/test_issue.py
+++ b/erpnext/support/doctype/issue/test_issue.py
@@ -70,6 +70,7 @@
 		"subject": "Service Level Agreement Issue",
 		"customer": customer,
 		"raised_by": "test@example.com",
+		"description": "Service Level Agreement Issue",
 		"creation": creation
 	}).insert(ignore_permissions=True)