From f4d71f3d743123d15558ab120af74499298a1891 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Wed, 25 Jan 2017 13:12:23 +0530 Subject: [PATCH] Bug-fix-patch System is storing attachments from mail in choose storage medium but not showing in timeline #344 --- app/Model/helpdesk/Ticket/Ticket_attachments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/helpdesk/Ticket/Ticket_attachments.php b/app/Model/helpdesk/Ticket/Ticket_attachments.php index 23d0c01f0..1172eac02 100644 --- a/app/Model/helpdesk/Ticket/Ticket_attachments.php +++ b/app/Model/helpdesk/Ticket/Ticket_attachments.php @@ -46,7 +46,7 @@ class Ticket_attachments extends Model $units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; $power = $size > 0 ? floor(log($size, 1024)) : 0; $value = number_format($size / pow(1024, $power), 2, '.', ',').' '.$units[$power]; - if ($this->poster == 'ATTACHMENT') { + if ($this->poster == 'ATTACHMENT' || $this->poster == 'attachment') { if (mime($this->type) == 'image') { $var = '';