When creating a patron or self registration a single space (or series of spaces) can be saved instead of required information in fields. This can cause difficulties in finding patrons.
"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.