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 "";