mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
fix for file-attachments, to not yet created entries
This commit is contained in:
parent
30bdbd48a9
commit
3a4d3d3f52
@ -132,8 +132,11 @@
|
||||
{
|
||||
$value[$row] = $link;
|
||||
$value[$row]['title'] = $this->link->title($link['app'],$link['id'],$link);
|
||||
if (!is_array($link['id']))
|
||||
{
|
||||
$value[$row]['view'] = $this->link->view($link['app'],$link['id'],$link);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
$cell['size'] = $cell['name'];
|
||||
@ -193,7 +196,10 @@
|
||||
{
|
||||
$link_id = $this->link->link($value['to_app'],$value['to_id'],
|
||||
$this->link->vfs_appname,$value['file'],$value['remark']);
|
||||
if (!is_array($value['to_id']))
|
||||
{
|
||||
unlink($value['file']['tmp_name']);
|
||||
}
|
||||
unset($value['file']);
|
||||
}
|
||||
$extension_data = $value;
|
||||
|
Loading…
Reference in New Issue
Block a user