소스 검색

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

(cherry picked from commit e821699c82)
version-14
Nabin Hait 2 년 전
committed by Mergify
부모
커밋
3282805294
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      frappe/core/doctype/communication/mixins.py

+ 2
- 1
frappe/core/doctype/communication/mixins.py 파일 보기

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



불러오는 중...
취소
저장