Skip to content

Commit

Permalink
Show proper error message when trying to forward a conversation witho…
Browse files Browse the repository at this point in the history
…ut specifying a To address - closes #2189
  • Loading branch information
freescout-help-desk committed Sep 2, 2022
1 parent 1535fc6 commit 685b5ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/ConversationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,10 @@ public function ajax(Request $request)
// List of emails.
$to_list = [];
if ($is_forward) {
if (empty($request->to_email[0])) {
$response['msg'] = __('Please specify a recipient.');
break;
}
$to = $request->to_email[0];
} else {
if (!empty($request->to)) {
Expand Down

0 comments on commit 685b5ab

Please sign in to comment.