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

Fix: Link to files attached to suppliers invoices was wrong.

parent fa04d0d7
No related branches found
No related tags found
No related merge requests found
......@@ -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>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment