mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
bugfix for files got lost, while converting to infolog immediately after send, if attached via vfs
This commit is contained in:
parent
50cac4e9b6
commit
587cf2f1f5
@ -853,7 +853,12 @@ class infolog_bo
|
||||
{
|
||||
foreach ($_attachments as $attachment)
|
||||
{
|
||||
if(is_readable($attachment['tmp_name']))
|
||||
$is_vfs = false;
|
||||
if (parse_url($attachment['tmp_name'],PHP_URL_SCHEME) == 'vfs' && egw_vfs::is_readable($attachment['tmp_name']))
|
||||
{
|
||||
$is_vfs = true;
|
||||
}
|
||||
if(is_readable($attachment['tmp_name']) || $is_vfs)
|
||||
{
|
||||
egw_link::link('infolog',$info['link_to']['to_id'],'file',$attachment);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user