| Summary: | Patron registration allows for saving required fields with a single space instead of information | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Lisette Scheer <lisette> |
| Component: | Patrons | Assignee: | Lucas Gass (lukeg) <lucas> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | gmcharlt, kyle, lucas, wizzyrea |
| Version: | unspecified | ||
| 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: | Version(s) released in: | ||
| Circulation function: | |||
| Attachments: | Bug 37143: Do not allow required fields with only whitespace to be submitted | ||
|
Description
Lisette Scheer
2024-06-20 14:57:17 UTC
"difficulties" = 500 error searching for patrons where the erroneous patron is part of the result set. This is true for staff interface patron reg as well. For example: 1. Do a patron search in the staff interface for all patrons. In k-t-d this works fine. 2. Self register a patron. For the required firstname and surname fields use an empty string like " ". 3. You can successfully register. 4. Go back to the staff client and do the same patron search, it never completes. Created attachment 167936 [details] [review] Bug 37143: Do not allow required fields with only whitespace to be submitted To test: 1. Make some fields for OPAC self registration required. 2. Create a new patron via self reg. 3. Fill out those required fields as an empty string like " ". 4. Submit the form, it succeeds. 5. APPLY PATCH, restart_all 6. Try again. Required fields with only whitespace are treated as if they were empty. |