Skip to content

Commit

Permalink
Update html.formfile.class.php
Browse files Browse the repository at this point in the history
in order to correct document lists in list of supplier invoices
  • Loading branch information
bafbes committed May 11, 2015
1 parent a503d90 commit 3e4fcd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/core/class/html.formfile.class.php
Expand Up @@ -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.= '<a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart='.$modulepart.'&amp;file='.urlencode($relativepath).'"';
Expand Down

0 comments on commit 3e4fcd1

Please sign in to comment.