Show only last response in support ticket response message
diff --git a/erpnext/support/doctype/support_ticket/support_ticket.py b/erpnext/support/doctype/support_ticket/support_ticket.py
index 986a9b5..78067d8 100644
--- a/erpnext/support/doctype/support_ticket/support_ticket.py
+++ b/erpnext/support/doctype/support_ticket/support_ticket.py
@@ -54,7 +54,9 @@
where name = %s
""", self.doc.name)
- return '\n\n=== In response to ===\n\n' + tmp[0][0]
+ response_title = "\n\n=== In response to ===\n\n"
+
+ return response_title + tmp[0][0].split(response_title)[0]
def make_response_record(self, response, from_email = None, content_type='text/plain'):
"""