Summary: | JS crash on patrons list when there is patron with empty name | ||
---|---|---|---|
Product: | Koha | Reporter: | Peter Vashchuk <stalkernoid> |
Component: | Patrons | Assignee: | Bugs List <koha-bugs> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | gmcharlt, kyle.m.hall |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: | Bug 37327: JS crash on patrons list when there is patron with empty name |
Description
Peter Vashchuk
2024-07-11 13:58:57 UTC
Patch that I will post below is a hotfix that we implemented on our production to somehow fix the issue but we did not do deep enough research to figure out if this is the right way to go about it and maybe it would be better to instead populate patron.library.name. Created attachment 168830 [details] [review] Bug 37327: JS crash on patrons list when there is patron with empty name To reproduce: 1. Create a new or edit existing patron and set the "First Name" as empty and "Surname" as whitespace (' '), so both name and surname are empty. 2. Go to the patron search page and do the search to load the patron list, which will lead to JS crash and patron list not loading. 3. Apply the patch. 4. Do step 2 again, this time the patron list should load properly. |