Unread criteria, iframe reload issue, attachment issue and replace example email with username

This commit is contained in:
Vijay Sebastian
2016-11-02 18:45:09 +05:30
parent dbb118b004
commit 0bc1e99fab
6 changed files with 69 additions and 129 deletions

View File

@@ -118,7 +118,7 @@ class Ticket_Thread extends Model
if ($this->attach()->where('poster', 'INLINE')->get()->count() > 0) {
$search = $this->attach()->where('poster', 'INLINE')->lists('name')->toArray();
foreach ($this->attach()->where('poster', 'INLINE')->get() as $key => $attach) {
$replace[$key] = "data:$attach->type;base64,".base64_encode($attach->file);
$replace[$key] = "data:$attach->type;base64,".$attach->file;
}
$body = str_replace($search, $replace, $body);
}