Selaa lähdekoodia

fix: Set email account in Communication only if exists (#18361)

(cherry picked from commit e821699c82)
version-14
Nabin Hait 2 vuotta sitten
committed by Mergify
vanhempi
commit
3282805294
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. +2
    -1
      frappe/core/doctype/communication/mixins.py

+ 2
- 1
frappe/core/doctype/communication/mixins.py Näytä tiedosto

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


if self.sent_or_received == "Sent" and self._outgoing_email_account: 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 return self._outgoing_email_account




Ladataan…
Peruuta
Tallenna