Bug 40917 - Required patron attributes show with extra whitespace in the textarea
Summary: Required patron attributes show with extra whitespace in the textarea
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Lucas Gass (lukeg)
QA Contact: Testopia
URL:
Keywords:
Depends on: 39189
Blocks:
  Show dependency treegraph
 
Reported: 2025-09-30 20:42 UTC by Lucas Gass (lukeg)
Modified: 2025-10-06 15:17 UTC (History)
5 users (show)

See Also:
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:


Attachments
Bug 40917: Remove extraneous whitespace (1.64 KB, patch)
2025-09-30 20:44 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 40917: Remove extraneous whitespace (1.69 KB, patch)
2025-10-01 20:19 UTC, CJ Lynce
Details | Diff | Splinter Review
Bug 40917: Remove extraneous whitespace (1.75 KB, patch)
2025-10-02 05:09 UTC, Emmi Takkinen
Details | Diff | Splinter Review
Bug 40917: Remove extraneous whitespace (1.82 KB, patch)
2025-10-06 10:14 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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