fix for file-attachments, to not yet created entries

This commit is contained in:
Ralf Becker 2003-10-04 16:58:09 +00:00
parent 30bdbd48a9
commit 3a4d3d3f52

View File

@ -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;