forked from extern/egroupware
* Tracker: fix inline images imported from mail get always overridden by the first inline image in the list
This commit is contained in:
parent
68cad3333c
commit
d06c81dcf8
@ -366,9 +366,16 @@ class mail_integration {
|
|||||||
// Fix inline images
|
// Fix inline images
|
||||||
if($mailcontent['html_message'] && $attachment['cid'] && $data_attachments[$key]['egw_data'])
|
if($mailcontent['html_message'] && $attachment['cid'] && $data_attachments[$key]['egw_data'])
|
||||||
{
|
{
|
||||||
$link_callback = function($cid) use($data_attachments, $key)
|
$link_callback = function($cid) use($data_attachments, $attachment, $key)
|
||||||
|
{
|
||||||
|
if ($attachment['cid'] == $cid)
|
||||||
{
|
{
|
||||||
return self::INLINE_PREFIX.$data_attachments[$key]['egw_data'].'" title="['.$data_attachments[$key]['name'].']';
|
return self::INLINE_PREFIX.$data_attachments[$key]['egw_data'].'" title="['.$data_attachments[$key]['name'].']';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "cid:".$cid;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
foreach(array('src','url','background') as $type)
|
foreach(array('src','url','background') as $type)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user