Merge pull request #2812 from bafbes/patch-1

Update html.formfile.class.php
This commit is contained in:
Laurent Destailleur 2015-05-11 23:08:40 +02:00
commit c59e365950

View File

@ -705,6 +705,9 @@ class FormFile
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.= '<a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart='.$modulepart.'&amp;file='.urlencode($relativepath).'"';