Skip to content

Commit

Permalink
Bug-fix-patch
Browse files Browse the repository at this point in the history
System is storing attachments from mail in choose storage medium but not
showing in timeline #344
  • Loading branch information
Manish Verma committed Jan 25, 2017
1 parent 5c5349a commit f4d71f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Model/helpdesk/Ticket/Ticket_attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getFile()
$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 = '<a href="'.\URL::route('image', ['image_id' => $this->id]).'" target="_blank"><img style="max-width:200px;height:133px;" src="data:image/jpg;base64,'.$this->file.'"/></a>';

Expand Down

0 comments on commit f4d71f3

Please sign in to comment.