Bug 40917

Summary: Required patron attributes show with extra whitespace in the textarea
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: PatronsAssignee: Lucas Gass (lukeg) <lucas>
Status: Pushed to main --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: cj.lynce, emmi.takkinen, gmcharlt, jonathan.druart, kyle
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 fixes a problem where extraeounos whitespace was being added to the textarea ( HTML element ) of a required patron attribute in the staff interface.
Version(s) released in:
25.11.00
Circulation function:
Bug Depends on: 39189    
Bug Blocks:    
Attachments: Bug 40917: Remove extraneous whitespace
Bug 40917: Remove extraneous whitespace
Bug 40917: Remove extraneous whitespace
Bug 40917: Remove extraneous whitespace

Description Lucas Gass (lukeg) 2025-09-30 20:42:19 UTC
TO recreate: 

1. Add an required patron attribute 
2. Go to the patron form ( memberentrygen.tt )
3. Look at the textarea for the required attribute 
4. There is unwanted whitespace characters in the textarea
Comment 1 Lucas Gass (lukeg) 2025-09-30 20:44:24 UTC
Created attachment 187138 [details] [review]
Bug 40917: Remove extraneous whitespace

To test:
1. Add an required patron attribute
2. Go to the patron form ( memberentrygen.tt )
3. Look at the textarea for the required attribute
4. There is unwanted whitespace characters in the textarea
5. APPLY PATCH
6. Try again, the whitespace should be gone.
Comment 2 CJ Lynce 2025-10-01 20:19:29 UTC
Created attachment 187225 [details] [review]
Bug 40917: Remove extraneous whitespace

To test:
1. Add an required patron attribute
2. Go to the patron form ( memberentrygen.tt )
3. Look at the textarea for the required attribute
4. There is unwanted whitespace characters in the textarea
5. APPLY PATCH
6. Try again, the whitespace should be gone.

Signed-off-by: CJ Lynce <cj.lynce@westlakelibrary.org>
Comment 3 CJ Lynce 2025-10-01 20:20:56 UTC
Took me a minute to 'see' the issue (extra whitespaces IN the textbox), but that's more a me issue. =) Patch works to remove those unwanted spaces.
Comment 4 Emmi Takkinen 2025-10-02 05:09:20 UTC
Created attachment 187228 [details] [review]
Bug 40917: Remove extraneous whitespace

To test:
1. Add an required patron attribute
2. Go to the patron form ( memberentrygen.tt )
3. Look at the textarea for the required attribute
4. There is unwanted whitespace characters in the textarea
5. APPLY PATCH
6. Try again, the whitespace should be gone.

Signed-off-by: CJ Lynce <cj.lynce@westlakelibrary.org>
Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Comment 5 Jonathan Druart 2025-10-06 10:14:09 UTC
Created attachment 187455 [details] [review]
Bug 40917: Remove extraneous whitespace

To test:
1. Add an required patron attribute
2. Go to the patron form ( memberentrygen.tt )
3. Look at the textarea for the required attribute
4. There is unwanted whitespace characters in the textarea
5. APPLY PATCH
6. Try again, the whitespace should be gone.

Signed-off-by: CJ Lynce <cj.lynce@westlakelibrary.org>
Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 6 Lucas Gass (lukeg) 2025-10-06 15:17:21 UTC
Nice work everyone!

Pushed to main for 25.11