diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index 43bb2cd5835..aa59108f523 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -492,6 +492,13 @@ class Ticket extends CommonObject } } + if (!$error && ! empty($conf->global->TICKET_ADD_AUTHOR_AS_CONTACT)) { + // add creator as contributor + if ($this->add_contact($user->id, 'CONTRIBUTOR', 'internal') < 0) { + $error++; + } + } + //Update extrafield if (!$error) { $result = $this->insertExtraFields();