closed #2508 Fixed: Send a copy to myself at.... still happens if unchecked
This commit is contained in:
parent
9d3e7a88be
commit
b59a9f1f55
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user