bug-fix-patch-17
*Solved bug for attachement rendering in tickets.
This commit is contained in:
@@ -258,7 +258,7 @@ class MailController extends Controller
|
|||||||
public function manageAttachment($data, $filename, $type, $size, $disposition, $thread_id)
|
public function manageAttachment($data, $filename, $type, $size, $disposition, $thread_id)
|
||||||
{
|
{
|
||||||
$upload = new Ticket_attachments();
|
$upload = new Ticket_attachments();
|
||||||
$upload->file = base64_encode($data);
|
$upload->file = $data;
|
||||||
$upload->thread_id = $thread_id;
|
$upload->thread_id = $thread_id;
|
||||||
$upload->name = $filename;
|
$upload->name = $filename;
|
||||||
$upload->type = $type;
|
$upload->type = $type;
|
||||||
|
@@ -11,6 +11,12 @@ class Ticket_attachments extends Model
|
|||||||
'id', 'thread_id', 'name', 'size', 'type', 'file', 'data', 'poster', 'updated_at', 'created_at',
|
'id', 'thread_id', 'name', 'size', 'type', 'file', 'data', 'poster', 'updated_at', 'created_at',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
public function setFileAttribute($value)
|
||||||
|
{
|
||||||
|
$this->attributes['file'] = base64_encode($value);
|
||||||
|
}
|
||||||
|
|
||||||
public function getFile()
|
public function getFile()
|
||||||
{
|
{
|
||||||
$size = $this->size;
|
$size = $this->size;
|
||||||
|
Reference in New Issue
Block a user