Hi,
We had the same issue, all of a sudden the counts started showing zeroes. We tracked it down to a ticket where the subject had been written to the database as null, and some javascript which was trying to truncate the subject to < 300 characters. The js couldn't truncate null, so it crashed.
We fixed it by editing two files:
Change line 409 of vendor/uvdesk/mailbox-component/Services/MailboxService.php
From:
'subject' => $emailParser->getHeader('subject') != false ? $emailParser->getHeader('subject') : null,
To:
'subject' => $emailParser->getHeader('subject') != false ? $emailParser->getHeader('subject') : "No Subject",
This writes "No Subject" to the subject column in the database instead of null.
Then change line 1361 of vendor/uvdesk/core-framework/Resources/views/ticketList.html.twig
From:
<%- subject && subject.length <= 300 ? subject : subject.substr(0, 300) + '...' %>
To:
<%- subject && subject.length <= 300 ? subject : (subject == null ? 'No Subject' : subject.substr(0, 300) + '...') %>
This prevents the ticket page from crashing if there are any existing tickets with null subjects, and will display "No Subject" instead.