Merge pull request #20810 from FHenry/15.0_fix_filename_lenght

fix: limit filename lenght to show glasses into document boxes
This commit is contained in:
Laurent Destailleur 2022-05-10 11:32:08 +02:00 committed by GitHub
commit 54e149b959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -892,7 +892,7 @@ class FormFile
}
$out .= '>';
$out .= img_mime($file["name"], $langs->trans("File").': '.$file["name"]);
$out .= dol_trunc($file["name"], 150);
$out .= dol_trunc($file["name"], 40);
$out .= '</a>'."\n";
$out .= $this->showPreview($file, $modulepart, $relativepath, 0, $param);
$out .= '</td>';