Browse Source

[minor] don't update the parent status if comment is added (#4241)

version-14
Makarand Bauskar 7 years ago
committed by Rushabh Mehta
parent
commit
9b32196c11
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      frappe/core/doctype/communication/email.py

+ 5
- 0
frappe/core/doctype/communication/email.py View File

@@ -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:


Loading…
Cancel
Save