Fix: Bad link for download file into documents page of supplier invoices
This commit is contained in:
parent
ddde3339f8
commit
504b519fb7
@ -762,7 +762,10 @@ class FormFile
|
|||||||
{
|
{
|
||||||
// Define relative path used to store the file
|
// Define relative path used to store the file
|
||||||
if (empty($relativepath))
|
if (empty($relativepath))
|
||||||
|
{
|
||||||
$relativepath=(! empty($object->ref)?dol_sanitizeFileName($object->ref):'').'/';
|
$relativepath=(! empty($object->ref)?dol_sanitizeFileName($object->ref):'').'/';
|
||||||
|
if ($object->element == 'invoice_supplier') $relativepath=get_exdir($object->id,2).$relativepath;
|
||||||
|
}
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'>';
|
print '<tr '.$bc[$var].'>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user