uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
MIT License
8.72k stars 461 forks source link

Viewing ticket issue after mail being sent with CC #735

Closed alexandrumarinpmpc closed 5 months ago

alexandrumarinpmpc commented 5 months ago

Hello!

I got the following issue about UVdesk. The issue is that after someone sents an email with an CC and ticket is generated on UVdesk, the user or the agent cannot see the ticket because i got an error "Impossible to access an attribute ("createdAt") on a null variable." when i try to see the ticket. I tried to apply in the code at "ticket.html.twig" the following code below for every error that i got but doesn't solve the issue. {% if initialThread is not null %} {{ ticket_service.timeZoneConverter(initialThread.createdAt) }} {% endif %} If someone doesn't put an CC when sending email, i can see without a problem that ticket generated. I only got that issue above only when someone sends it with CC and i don't know what to do. Screenshot 2024-04-08 091905

This ticket was generated without CC being used in the mail. Screenshot 2024-04-08 092400