FIX : Page expands when ticket messages are too long (#29785)

* FIX : Page expands when ticket messages are too long

* Update functions.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
atm-irvine
2024-05-31 16:05:27 +02:00
committed by GitHub
parent 9be7464ea3
commit b08e2604b3

View File

@@ -13359,7 +13359,7 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = '', $n
&& $actionstatic->code != 'AC_TICKET_CREATE'
&& $actionstatic->code != 'AC_TICKET_MODIFY'
) {
$out .= '<div class="timeline-body" >';
$out .= '<div class="timeline-body wordbreak">';
$truncateLines = getDolGlobalInt('MAIN_TRUNCATE_TIMELINE_MESSAGE', 3);
$truncatedText = dolGetFirstLineOfText($histo[$key]['message'], $truncateLines);
if ($truncateLines > 0 && strlen($histo[$key]['message']) > strlen($truncatedText)) {