fix: limit filename lenght to show glasses

This commit is contained in:
Florian HENRY 2022-05-09 14:32:47 +02:00
parent 82ab41a7f3
commit 333b22b961

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