FIX data too long in ticket message

This commit is contained in:
VESSILLER 2022-12-05 16:00:45 +01:00
parent 8d5a3c6bae
commit b27d4fa524

View File

@ -381,6 +381,7 @@ class Ticket extends CommonObject
if (isset($this->message)) {
$this->message = trim($this->message);
if (dol_strlen($this->message) > 65000) $this->message = dol_substr($this->message, 0, 65000, 'UTF-8') . '...';
}
if (isset($this->fk_statut)) {
@ -915,6 +916,7 @@ class Ticket extends CommonObject
if (isset($this->message)) {
$this->message = trim($this->message);
if (dol_strlen($this->message) > 65000) $this->message = dol_substr($this->message, 0, 65000, 'UTF-8') . '...';
}
if (isset($this->fk_statut)) {