diff --git a/htdocs/product/document.php b/htdocs/product/document.php index be17db1e20f..09d6244062e 100755 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -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"); }