Page 1 of 1

Sort Projects on Dropdown Menu

Posted: 30 Oct 2023, 13:10
by sara.rossi
Hi everyone,

I would like to sort projects on dropdown menu by ID or preference choice instead alphabetically like now..

Do you know how can I apply this?

Many thanks,

Sara

Re: Sort Projects on Dropdown Menu

Posted: 30 Oct 2023, 13:38
by cas
AFAIK this is not available out of the box. It would mean you would need to adjust a core script (function user_get_accessible_projects within core\user_api.php). This is not the best option but it can be done.

Re: Sort Projects on Dropdown Menu

Posted: 30 Oct 2023, 13:45
by sara.rossi
cas wrote: 30 Oct 2023, 13:38 AFAIK this is not available out of the box. It would mean you would need to adjust a core script (function user_get_accessible_projects within core\user_api.php). This is not the best option but it can be done.
Is there any wait to do this with a plugin?

And on core\user_api.php... will this change impact any other mantis field? what do you think? thank you very much for your help

Re: Sort Projects on Dropdown Menu

Posted: 30 Oct 2023, 14:05
by cas
Not sure it that would impact other areas, couls very well be (that is why one should not change core scripts). Aplugion will not do the trick here.
What you can do, is to adjust the name of the project (fe ppreceding the text with the id) to achieve what you want :mrgreen: