bug-fix-patch-6

# solved  agent reply attahcment issue
This commit is contained in:
Manish Verma
2016-11-29 10:23:36 +05:30
parent 435bc29edc
commit 1e59545e9b

View File

@@ -2815,7 +2815,7 @@ class TicketController extends Controller
$attachments = $attachment->where('thread_id', $thread_id)->get(); $attachments = $attachment->where('thread_id', $thread_id)->get();
if ($attachments->count() > 0) { if ($attachments->count() > 0) {
foreach ($attachments as $key => $attach) { foreach ($attachments as $key => $attach) {
$array[$key]['file_path'] = base64_encode($attach->file); $array[$key]['file_path'] = $attach->file;
$array[$key]['file_name'] = $attach->name; $array[$key]['file_name'] = $attach->name;
$array[$key]['mime'] = $attach->type; $array[$key]['mime'] = $attach->type;
$array[$key]['mode'] = 'data'; $array[$key]['mode'] = 'data';