1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 11:22:42 +01:00

set "to" in new conversation with url parameter

This commit is contained in:
Tillmann Baumgart 2020-12-16 22:38:06 +01:00
parent 608e6e7a1d
commit 758129d035

View File

@ -315,6 +315,12 @@ class ConversationsController extends Controller
}
}
$to = [];
if ($request->get('to')) {
$to = [$request->get('to')];
}
return view('conversations/create', [
'conversation' => $conversation,
'thread' => $thread,
@ -322,7 +328,7 @@ class ConversationsController extends Controller
'folder' => $folder,
'folders' => $mailbox->getAssesibleFolders(),
'after_send' => $after_send,
'to' => [],
'to' => $to,
]);
}