diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 03ac96d6c9e..16217490093 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -326,7 +326,7 @@ if ($action=='remove_file') if ($com->fetch($id)) { $upload_dir = $conf->commande->dir_output . "/" . $com->ref; - $file = $upload_dir . '/' . urldecode($_GET['urlfile']); + $file = $upload_dir . '/' . urldecode($_GET['file']); dol_delete_file($file); $mesg = '