I think I've found another issue in 2.11.0. I have a ticket status called Pending with "Include tickets in this state in the moderator bar ticket count" disabled.
My default ticket view is Open tickets, and I intentionally include both Open and Pending statuses in that view so staff can work from a single queue.
However, the moderator bar count also includes the Pending tickets. For example:
- 1 Open ticket
- 4 Pending tickets (include_in_counts = 0)
- Moderator bar shows 5 instead of 1
I verified the following:
- Removed orphaned files using php cmd.php xf:file-clean-up NF/Tickets
- Rebuilt the add-on
- include_in_counts is correctly stored as 0 in the database
I also found that if I remove Pending from the default "Open tickets" view, the moderator bar immediately changes from 5 to 1. However, this also removes the Pending tickets from the queue, which is not the desired behaviour.
It looks like the moderator bar count is using the default ticket view count instead of respecting the include_in_counts status option.
Is this intended behaviour, or is it a regression in 2.11.0?