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

This commit is contained in:
Laurent Destailleur 2014-01-01 18:30:32 +01:00
parent ddde3339f8
commit 504b519fb7

View File

@ -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].'>';