Kaynağa Gözat

Merge pull request #18364 from frappe/mergify/bp/version-14-hotfix/pr-18361

fix: Set email account in Communication only if exists (backport #18361)
version-14
Ritwik Puri 2 yıl önce
committed by GitHub
ebeveyn
işleme
59f00b4540
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      frappe/core/doctype/communication/mixins.py

+ 2
- 1
frappe/core/doctype/communication/mixins.py Dosyayı Görüntüle

@@ -165,7 +165,8 @@ class CommunicationEmailMixin:
)

if self.sent_or_received == "Sent" and self._outgoing_email_account:
self.db_set("email_account", self._outgoing_email_account.name)
if frappe.db.exists("Email Account", self._outgoing_email_account.name):
self.db_set("email_account", self._outgoing_email_account.name)

return self._outgoing_email_account



Yükleniyor…
İptal
Kaydet