[Bug 37327] New: JS crash on patrons list when there is patron with empty name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37327 Bug ID: 37327 Summary: JS crash on patrons list when there is patron with empty name Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Patrons Assignee: koha-bugs@lists.koha-community.org Reporter: stalkernoid@gmail.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com When a patron has an empty first name and surname, JS crashes on the patrons list page, causing the patron list to fail to load. 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 search to load the patron list, which will lead to JS crash and patron list not loading. 3. The error can be found in the console of your browser "Uncaught TypeError: Cannot read properties of undefined (reading 'name')" -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37327 --- Comment #1 from Peter Vashchuk <stalkernoid@gmail.com> --- 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. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37327 --- Comment #2 from Peter Vashchuk <stalkernoid@gmail.com> --- Created attachment 168830 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168830&action=edit 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. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37327 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- It looks like this is duplicate to bug 37368 that is a more complete fix. *** This bug has been marked as a duplicate of bug 37368 *** -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org