From 07c382dd7566289be4c24ccd68ff1ff9f844dbba Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 7 Nov 2009 15:06:04 +0000 Subject: [PATCH] Fix: Link to files attached to suppliers invoices was wrong. --- htdocs/html.formfile.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/htdocs/html.formfile.class.php b/htdocs/html.formfile.class.php index 2eb752bad28..f1e4e7333a4 100644 --- a/htdocs/html.formfile.class.php +++ b/htdocs/html.formfile.class.php @@ -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 "";