Bug 40734

Summary: Libraries additional fields don't appear when creating a new library
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: Staff interfaceAssignee: Pedro Amorim <pedro.amorim>
Status: RESOLVED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: david, fridolin.somers, gmcharlt, pedro.amorim
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This fixes adding a new library when additional fields are configured in Administration > Additional fields > Libraries (branches). The additional fields were not shown when creating a new library (they were shown when editing an existing library).
Version(s) released in:
25.11.00,25.05.04
Circulation function:
Bug Depends on: 38663    
Bug Blocks:    
Attachments: Bug 40734: Fix creating new library with additional fields
Bug 40734: Fix creating new library with additional fields
Bug 40734: Fix creating new library with additional fields

Description Caroline Cyr La Rose 2025-08-29 18:02:47 UTC
I was documenting bug 38663 and noticed that the Additional fields section doesn't appear when adding a new library.

To recreate:
1. Go to Administration > Additional fields > Libraries (branches) > New field
2. Enter a name for the field
3. Click Save
4. Go to Administration > Libraries > New library
   --> The form does not contain the additional field
Comment 1 David Nind 2025-08-29 20:30:50 UTC
I can confirm that this is happening:
1. Additional fields for libraries show when editing and existing library
2. Additional fields for libraries don't show when creating a new library
Comment 2 Pedro Amorim 2025-09-01 10:29:02 UTC
*** Bug 40735 has been marked as a duplicate of this bug. ***
Comment 3 Pedro Amorim 2025-09-01 10:30:47 UTC
Created attachment 186013 [details] [review]
Bug 40734: Fix creating new library with additional fields

Test plan, dont apply patch yet:
1. Go to Administration > Additional fields > Libraries (branches) > New field
2. Enter a name for the field
3. Click Save
4. Go to Administration > Libraries > New library
   --> The form does not contain the additional field
5. Apply patch. Repeat.
Comment 4 David Nind 2025-09-01 11:54:44 UTC
Created attachment 186015 [details] [review]
Bug 40734: Fix creating new library with additional fields

Test plan, dont apply patch yet:
1. Go to Administration > Additional fields > Libraries (branches) > New field
2. Enter a name for the field
3. Click Save
4. Go to Administration > Libraries > New library
   --> The form does not contain the additional field
5. Apply patch. Repeat.

Signed-off-by: David Nind <david@davidnind.com>
Comment 5 Jonathan Druart 2025-09-16 08:59:30 UTC
Created attachment 186454 [details] [review]
Bug 40734: Fix creating new library with additional fields

Test plan, dont apply patch yet:
1. Go to Administration > Additional fields > Libraries (branches) > New field
2. Enter a name for the field
3. Click Save
4. Go to Administration > Libraries > New library
   --> The form does not contain the additional field
5. Apply patch. Repeat.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 6 Lucas Gass (lukeg) 2025-09-18 19:54:27 UTC
Nice work everyone!

Pushed to main for 25.11
Comment 7 Paul Derscheid 2025-09-25 16:31:01 UTC
Nice work everyone!

Pushed to 25.05.x
Comment 8 Fridolin Somers 2025-10-16 07:35:05 UTC
Depends on Bug 38663 not in 24.11.x
Comment 9 Caroline Cyr La Rose 2025-10-16 15:18:55 UTC
Already documented as part of bug 38663