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: Signed Off --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: david, gmcharlt, pedro.amorim
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:
Version(s) released in:
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

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>