From 685b5abe03fd27d497a88e477431fc34ebff77b0 Mon Sep 17 00:00:00 2001 From: FreeScout Date: Fri, 2 Sep 2022 07:09:54 -0700 Subject: [PATCH] Show proper error message when trying to forward a conversation without specifying a To address - closes #2189 --- app/Http/Controllers/ConversationsController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/ConversationsController.php b/app/Http/Controllers/ConversationsController.php index dbf138616..0be87d927 100755 --- a/app/Http/Controllers/ConversationsController.php +++ b/app/Http/Controllers/ConversationsController.php @@ -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)) {