Solved Ticket Message in generated mails
-
Hello all,
I've a little problem with the generated emails to the agents.
My version is 1.0.18 (the problem, I think, was already there in 1.0.16).I use the following placeholder:
*Here goes the ticket message:
{%ticket.message%}*
But the resulting mail doesn't contain the message (the message in well present int the ticket):
Thanks in advance
Stéphane
-
You can use {%ticket.threadMessage%} fo this.
-
For info, I replaced
'ticket.message' => count($ticket->getThreads()) > 0 ? preg_replace("/<img[^>]+\>/i", "", $ticket->getThreads()->get(0)->getMessage()) : '',
by
'ticket.message' => (isset($ticket->createdThread)) ? $ticket->createdThread->getMessage() : ''
and now, the message is present in the mail when creating a ticket.
(in ./vendor/uvdesk/core-framework/Services/EmailService.php) -
You can use {%ticket.threadMessage%} fo this.
-
peopleinside