Merge pull request #9989 from frederic34/patch-16

Update actions_ticket.class.php
This commit is contained in:
Laurent Destailleur 2018-11-10 12:18:37 +01:00 committed by GitHub
commit 2946ca60cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -845,11 +845,11 @@ class ActionsTicket
}
if (!$error) {
$object->message = GETPOST("message");
$object->message = (string) GETPOST("message");
$id = $object->createTicketMessage($user);
if ($id <= 0) {
$error++;
$this->errors = $object->error;
$this->error = $object->error;
$this->errors = $object->errors;
$action = 'add_message';
}