Skip to content

Commit

Permalink
Fix: Bad link for download file into documents page of supplier invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 1, 2014
1 parent 0bdcda5 commit 5fd47b3
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 @@ -762,7 +762,10 @@ function list_of_documents($filearray,$object,$modulepart,$param='',$forcedownlo
{
// Define relative path used to store the file
if (empty($relativepath))
{
$relativepath=(! empty($object->ref)?dol_sanitizeFileName($object->ref):'').'/';
if ($object->element == 'invoice_supplier') $relativepath=get_exdir($object->id,2).$relativepath;
}

$var=!$var;
print '<tr '.$bc[$var].'>';
Expand Down

0 comments on commit 5fd47b3

Please sign in to comment.