diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index d9a5e19843f..c117417e428 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -604,7 +604,7 @@ class FormFile
// Show file name with link to download
$out.= '
';
- $out.= '';
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index 181f95e43c6..f3f87ba6f79 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -2524,7 +2524,7 @@ else
$var=true;
- print $formfile->showdocuments('company', $object->id, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 0, 0, 0, 28, 0, '', 0, '', $object->default_lang);
+ print $formfile->showdocuments('company', $object->id, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 0, 0, 0, 28, 0, 'entity='.$object->entity, 0, '', $object->default_lang);
print ' |