Procházet zdrojové kódy

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

version-14
Makarand Bauskar před 7 roky
committed by Rushabh Mehta
rodič
revize
9b32196c11
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. +5
    -0
      frappe/core/doctype/communication/email.py

+ 5
- 0
frappe/core/doctype/communication/email.py Zobrazit soubor

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


Načítá se…
Zrušit
Uložit