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