Skip to content
Snippets Groups Projects
Commit 504b519f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Bad link for download file into documents page of supplier invoices

parent ddde3339
No related branches found
No related tags found
No related merge requests found
......@@ -762,7 +762,10 @@ class FormFile
{
// 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].'>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment