Fix: show mini-ticket dashboard for helpdesk profiles#24757
Conversation
|
Was this discussed with @orthagh? It's been a while so I am not 100% sure but I think omitting this dashboard for self service users was done on purpose. There are edge cases (sometimes power users end up as self service like our partners on our own support who can have a lot of tickets for multiple clients), for which we added the ability to display any dashboards on the helpdesk home page (you just need to share a dashboard with the target user). That's how I remember it, feel free to correct me if I'm wrong :) |
|
I understand; it's true that this isn't relevant for all self-service profiles, but FC used to provide it, so it might be frustrating for those who found it useful. As a temporary solution, could we perhaps add a setting to the profiles to enable or disable it? (It wouldn't be enabled by default) |
|
I forwarded Adrien's response to the client. It seems to have satisfied her, so we can either continue or close the case, whichever you prefer; either is fine with me. |
|
I'm inclined to let it off, if the current situation is fine for the customer. |
Checklist before requesting a review
Please delete options that are not relevant.
Description
This restores the behaviour previously provided by the FormCreator plugin.
Self-service/helpdesk profiles now see the mini-ticket dashboard (count boxes) above the ticket list, both on the helpdesk home page and on
front/ticket.php.Three changes make this work:
canViewCurrent()grants access to systemmini_coredashboards for helpdesk users who hold any ticket read right; thecentral-only guard inHTMLSearchOutput::showPreSearchDisplay()is removed; and theticketssector is added to$CFG_GLPI['javascript']sogridstack.jsand its CSS are loaded onfront/ticket.phpfor helpdesk users.Screenshots (if appropriate):