Sort Projects on Dropdown Menu

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
sara.rossi
Posts: 9
Joined: 01 Feb 2023, 11:01

Sort Projects on Dropdown Menu

Post 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
cas
Posts: 1622
Joined: 11 Mar 2006, 16:08
Contact:

Re: Sort Projects on Dropdown Menu

Post 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.
sara.rossi
Posts: 9
Joined: 01 Feb 2023, 11:01

Re: Sort Projects on Dropdown Menu

Post 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
cas
Posts: 1622
Joined: 11 Mar 2006, 16:08
Contact:

Re: Sort Projects on Dropdown Menu

Post 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:
Post Reply