From 029596bc40cf66bf34c7eead676d20b64fa1a40f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 27 May 2020 23:32:24 +0200 Subject: [PATCH] Fix error assignement --- htdocs/ticket/class/ticket.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index 4545497be62..5dce2bf9842 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -2453,7 +2453,7 @@ class Ticket extends CommonObject $id = $object->createTicketMessage($user, 0, $listofpaths, $listofmimes, $listofnames); if ($id <= 0) { $error++; - $this->errors = $object->error; + $this->error = $object->error; $this->errors = $object->errors; $action = 'add_message'; }