From 3e187d7d50a467ff27e47f98d732c7608b281c7c Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 18 Jan 2018 15:37:46 +0530 Subject: [PATCH] [Fix] Showing status as Replied after adding the comment in the emails (#4865) --- frappe/core/doctype/communication/communication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/core/doctype/communication/communication.py b/frappe/core/doctype/communication/communication.py index 70ce25ae9f..1e8bac622f 100644 --- a/frappe/core/doctype/communication/communication.py +++ b/frappe/core/doctype/communication/communication.py @@ -70,7 +70,8 @@ class Communication(Document): if not (self.reference_doctype and self.reference_name): return - if self.reference_doctype == "Communication" and self.sent_or_received == "Sent": + if self.reference_doctype == "Communication" and self.sent_or_received == "Sent" and \ + self.communication_type != 'Comment': frappe.db.set_value("Communication", self.reference_name, "status", "Replied") if self.communication_type in ("Communication", "Comment"):