Merge pull request #32414 from altairisfr/fix_status_ticket

FIX: status ticket update for new message
This commit is contained in:
Laurent Destailleur 2025-01-14 14:35:24 +01:00 committed by GitHub
commit eb8167bc57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -458,7 +458,7 @@ if (empty($reshook)) {
// Action to add a message (private or not, with email or not).
// This may also send an email (concatenated with email_intro and email footer if checkbox was selected)
if ($action == 'add_message' && GETPOSTISSET('btn_add_message') && $permissiontoread) {
$ret = $object->newMessage($user, $action, (GETPOST('private_message', 'alpha') == "on" ? 1 : 0), 0);
$ret = $object->newMessage($user, $action, GETPOSTINT('private_message'), 0);
if ($ret > 0) {
if (!empty($backtopage)) {