Fix error assignement

This commit is contained in:
Laurent Destailleur 2020-05-27 23:32:24 +02:00
parent 2bababb73e
commit 029596bc40

View File

@ -2453,7 +2453,7 @@ class Ticket extends CommonObject
$id = $object->createTicketMessage($user, 0, $listofpaths, $listofmimes, $listofnames); $id = $object->createTicketMessage($user, 0, $listofpaths, $listofmimes, $listofnames);
if ($id <= 0) { if ($id <= 0) {
$error++; $error++;
$this->errors = $object->error; $this->error = $object->error;
$this->errors = $object->errors; $this->errors = $object->errors;
$action = 'add_message'; $action = 'add_message';
} }