diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 585b7d123a4..22d4139a8f5 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -16253,6 +16253,7 @@ function dolForgeSQLCriteriaCallback($matches) */ function getTimelineIcon($actionstatic, &$histo, $key) { + dol_syslog('getTimelineIcon::begin', LOG_DEBUG); global $langs; $out = '' . "\n"; @@ -16360,6 +16361,7 @@ function getActionCommEcmList($object) */ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null, $noprint = 0, $actioncode = '', $donetodo = 'done', $filters = array(), $sortfield = 'a.datep,a.id', $sortorder = 'DESC') { + dol_syslog('show_actions_messaging::begin', LOG_DEBUG); global $user, $conf; global $form; @@ -17022,14 +17024,17 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null, $out .= ''; // Message + if ($actionstatic->code == 'AC_TICKET_CREATE') { + $newmess = $filterobj->message; + } else { + $newmess = $histo[$key]['message']; + } if ( - !empty($histo[$key]['message'] && $histo[$key]['message'] != $libelle) - && $actionstatic->code != 'AC_TICKET_CREATE' + !empty($newmess && $newmess != $libelle) && $actionstatic->code != 'AC_TICKET_MODIFY' ) { $out .= '