I wrote this code to get from the database who created the ticketfunction getCreatedBy()
{
$sql = 'SELECT staff FROM '.TICKET_EVENT_TABLE
.' WHERE ticket_id='.db_input($this->getId())
.' AND state='.db_input("created");
if(($res=db_query($sql)) && db_num_rows($res))
list($id)=db_fetch_row($res);
return $id;
}I put this in /include/staff/class.ticket.php and then tryied to modify onNewTicket()concatenating the return with the subject but it didnt workThank you in advance