Skip to content

Commit

Permalink
Fix CC and BCC fields when cloning a conversation - closes #4011
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-helpdesk committed May 5, 2024
1 parent cb31699 commit c4932c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Http/Controllers/ConversationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ public function cloneConversation(Request $request, $mailbox_id, $from_thread_id
$conversation->user_id = $orign_conv->user_id;
$conversation->updateFolder();
$conversation->save();


$thread = Thread::createExtended([
'conversation_id' => $orig_thread->conversation_id,
Expand All @@ -515,8 +514,8 @@ public function cloneConversation(Request $request, $mailbox_id, $from_thread_id
'headers' => $orig_thread->headers,
'from' => $orig_thread->from,
'to' => $orig_thread->to,
'cc' => $orig_thread->cc,
'bcc' => $orig_thread->bcc,
'cc' => $orig_thread->getCcArray(),
'bcc' => $orig_thread->getBccArray(),
//'attachments' => $attachments,
'has_attachments' => $orig_thread->has_attachments,
'message_id' => "clone".crc32(microtime()).'-'.$orig_thread->message_id,
Expand Down

0 comments on commit c4932c4

Please sign in to comment.