Bug 40843

Summary: On modborrowers.pl patron attributes should sort by the description, not the code
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: ToolsAssignee: Lucas Gass (lukeg) <lucas>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: andrew
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
This patch fixes a problem in the batch patron modification tool where extended patron attributes were sorting based on the code, instead of the description.
Version(s) released in:
Circulation function:
Attachments: Bug 40843: Sort patron attributes by description
Bug 40843: Sort patron attributes by description

Description Lucas Gass (lukeg) 2025-09-19 17:22:18 UTC
To recreate:

1/ Have several borrower attributes set up so you can see how they sort
2/ Go to Tools >  Batch patron modification
3/ Notice the "Patron attribute:: dropdown near the bottom
4/ It is sorted by the attribute code, not the description. 

It should sort by description.
Comment 1 Lucas Gass (lukeg) 2025-09-19 17:23:22 UTC
Created attachment 186626 [details] [review]
Bug 40843: Sort patron attributes by description
Comment 2 Lucas Gass (lukeg) 2025-09-19 17:26:33 UTC
Created attachment 186627 [details] [review]
Bug 40843: Sort patron attributes by description

To test:

1/ Have several borrower attributes set up so you can see how they sort
2/ Go to Tools >  Batch patron modification
3/ Notice the "Patron attribute:: dropdown near the bottom
4/ It is sorted by the attribute code, not the description.
5/ APPLY PATCH and restart_all
6/ Try again, it should sort by the description