Update html.formfile.class.php

in order to correct document lists in list of supplier invoices
This commit is contained in:
Bahfir Abbes 2015-05-11 17:51:54 +01:00
parent a503d90982
commit 3e4fcd1ac7

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).'"';