Bug 40114

Summary: Can't select new library when editing a desk
Product: Koha Reporter: Owen Leonard <oleonard>
Component: System AdministrationAssignee: Owen Leonard <oleonard>
Status: Pushed to oldstable --- QA Contact: Lucas Gass (lukeg) <lucas>
Severity: normal    
Priority: P5 - low CC: esther.melander, fridolin.somers, gmcharlt, lucas
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 that made it impossible to select a new library/branch when editing a desk from Administration -> Desks.
Version(s) released in:
25.11.00,25.05.03,24.11.09
Circulation function:
Bug Depends on:    
Bug Blocks: 40113    
Attachments: Bug 40114: Can't select new library when editing a desk
Bug 40114: Can't select new library when editing a desk

Description Owen Leonard 2025-06-10 18:41:51 UTC
When editing a desk, the "Library" <select> only includes one option, the existing value.
Comment 1 Owen Leonard 2025-06-10 18:46:22 UTC
Created attachment 183147 [details] [review]
Bug 40114: Can't select new library when editing a desk

This patch fixes selection of a library when editing a desk in
Administration. The form should provide all libraries as options, not
just the currently selected one.

To test, apply the patch and go to Administration -> Desks.

- If necessary, create a new desk.
- Edit the desk. The form should load with the correct library prefilled
  in the <select>, but should offer all libraries as a choices.

Sponsored-by: Athens County Public Libraries
Comment 2 Esther Melander 2025-06-11 16:20:51 UTC
The test plan appeared to work.

Signed off by: Esther Melander <esther@bywatersolutions.com>
Comment 3 Lucas Gass (lukeg) 2025-07-25 17:17:39 UTC
Created attachment 184656 [details] [review]
Bug 40114: Can't select new library when editing a desk

This patch fixes selection of a library when editing a desk in
Administration. The form should provide all libraries as options, not
just the currently selected one.

To test, apply the patch and go to Administration -> Desks.

- If necessary, create a new desk.
- Edit the desk. The form should load with the correct library prefilled
  in the <select>, but should offer all libraries as a choices.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 4 Lucas Gass (lukeg) 2025-07-25 20:39:45 UTC
Nice work everyone!

Pushed to main for 25.11
Comment 5 Paul Derscheid 2025-08-22 08:28:44 UTC
Nice work everyone!

Pushed to 25.05.x
Comment 6 Fridolin Somers 2025-09-17 15:19:27 UTC
Pushed to 24.11.x for 24.11.09