From 117cd337dd0de1e66e5f06abb6815a3a84b18674 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 6 Aug 2012 17:39:56 +0200 Subject: [PATCH] Fix: missing object --- htdocs/product/document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }