closed #2508 Fixed: Send a copy to myself at.... still happens if unchecked

This commit is contained in:
Cüneyt Şentürk 2022-07-14 01:36:14 +03:00
parent 9d3e7a88be
commit b59a9f1f55
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ class SendTransactionAsCustomMail extends Job
$custom_mail = $this->request->only(['to', 'subject', 'body']);
if ($this->request->has('user_email')) {
if ($this->request->get('user_email', false)) {
$custom_mail['cc'] = user()->email;
}

View File

@ -20,7 +20,7 @@ class SendDocumentAsCustomMail extends Job
$custom_mail = $this->request->only(['to', 'subject', 'body']);
if ($this->request->has('user_email')) {
if ($this->request->get('user_email', false)) {
$custom_mail['cc'] = user()->email;
}