Skip to content

Commit

Permalink
Fix preserving attachments when creating a new conversation from exis…
Browse files Browse the repository at this point in the history
…ting thread - closes #4432
  • Loading branch information
freescout-help-desk committed Dec 19, 2024
1 parent 043b7dd commit 1148a35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/conversations/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@
@endphp
<div class="thread-attachments attachments-upload" @if (count($attachments)) style="display: block" @endif>
@foreach ($attachments as $attachment)
<input type="hidden" name="attachments_all[]" value="{{ $attachment->id }}">
<input type="hidden" name="attachments[]" value="{{ $attachment->id }}" class="atachment-upload-{{ $attachment->id }}">
<input type="hidden" name="attachments_all[]" value="{{ encrypt($attachment->id) }}">
<input type="hidden" name="attachments[]" value="{{ encrypt($attachment->id) }}" class="atachment-upload-{{ encrypt($attachment->id) }}">
@endforeach
<ul>
@foreach ($attachments as $attachment)
<li class="atachment-upload-{{ $attachment->id }} attachment-loaded">
<img src="{{ asset('img/loader-tiny.gif') }}" width="16" height="16"> <a href="{{ $attachment->url() }}" class="break-words" target="_blank">{{ $attachment->file_name }}<span class="ellipsis">…</span> </a> <span class="text-help">({{ $attachment->getSizeName() }})</span> <i class="glyphicon glyphicon-remove" data-attachment-id="{{ $attachment->id }}"></i>
<li class="atachment-upload-{{ encrypt($attachment->id) }} attachment-loaded">
<img src="{{ asset('img/loader-tiny.gif') }}" width="16" height="16"> <a href="{{ $attachment->url() }}" class="break-words" target="_blank">{{ $attachment->file_name }}<span class="ellipsis">…</span> </a> <span class="text-help">({{ $attachment->getSizeName() }})</span> <i class="glyphicon glyphicon-remove" data-attachment-id="{{ encrypt($attachment->id) }}"></i>
</li>
@endforeach
</ul>
Expand Down

0 comments on commit 1148a35

Please sign in to comment.