Fix: missing object

This commit is contained in:
Regis Houssin 2012-08-06 17:39:56 +02:00
parent 96726c1c9b
commit 117cd337dd

View File

@ -129,7 +129,7 @@ if ($object->id)
if ($action=='delete')
{
$file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP).
$result=dol_delete_file($file);
$result=dol_delete_file($file,0,0,0,$object);
//if ($result >= 0) $mesg=$langs->trans("FileWasRemoced");
}