diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 0b00dc265f481..7870371a4ab3f 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -705,6 +705,9 @@ function getDocumentsLink($modulepart, $modulesubdir, $filedir) if ($modulepart == 'export') { $relativepath = $file["name"]; } + if ($modulepart == 'facture_fournisseur') { + $relativepath = get_exdir($modulesubdir, 2). $modulesubdir. "/" . $file["name"]; + } // Show file name with link to download $out.= '