Преглед изворни кода

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

version-14
Makarand Bauskar пре 7 година
committed by Rushabh Mehta
родитељ
комит
9b32196c11
1 измењених фајлова са 5 додато и 0 уклоњено
  1. +5
    -0
      frappe/core/doctype/communication/email.py

+ 5
- 0
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:


Loading…
Откажи
Сачувај