From 9b32196c11e07c0174411fd63f93b3a148e71e2b Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Wed, 4 Oct 2017 17:59:32 +0530 Subject: [PATCH] [minor] don't update the parent status if comment is added (#4241) --- frappe/core/doctype/communication/email.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frappe/core/doctype/communication/email.py b/frappe/core/doctype/communication/email.py index 04bc906161..166aa4d84d 100755 --- a/frappe/core/doctype/communication/email.py +++ b/frappe/core/doctype/communication/email.py @@ -173,6 +173,11 @@ def update_parent_status(doc): if not parent: return + # update parent status only if we create the Email communication + # ignore in case of only Comment is added + if doc.communication_type == "Comment": + return + status_field = parent.meta.get_field("status") if status_field: