Fix: missing object
This commit is contained in:
parent
96726c1c9b
commit
117cd337dd
@ -129,7 +129,7 @@ if ($object->id)
|
|||||||
if ($action=='delete')
|
if ($action=='delete')
|
||||||
{
|
{
|
||||||
$file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP).
|
$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");
|
//if ($result >= 0) $mesg=$langs->trans("FileWasRemoced");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user