Fix: Link to files attached to suppliers invoices was wrong.
This commit is contained in:
parent
fa04d0d7fc
commit
07c382dd75
@ -449,11 +449,7 @@ class FormFile
|
||||
&& ! preg_match('/\.meta$/i',$file['name']))
|
||||
{
|
||||
// Define relative path used to store the file
|
||||
if (! $relativepath)
|
||||
{
|
||||
$relativepath=dol_sanitizeFileName($object->ref).'/';
|
||||
if ($modulepart == 'facture_fournisseur') $relativepath=get_exdir($object->id,2).$relativepath;
|
||||
}
|
||||
if (! $relativepath) $relativepath=dol_sanitizeFileName($object->ref).'/';
|
||||
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]><td>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user