[Koha-bugs] [Bug 31782] New: Patron lists - patron autocomplete search does not work
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 13 23:35:27 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31782
Bug ID: 31782
Summary: Patron lists - patron autocomplete search does not
work
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Tools
Assignee: koha-bugs at lists.koha-community.org
Reporter: david at davidnind.com
QA Contact: testopia at bugs.koha-community.org
When adding a patron to a list, the autocomplete search does not work.
Instead, you have to paste the patron card number or borrower number into the
Add multiple patrons form.
To replicate:
1. Go to Tools > Patrons and circulation > Patron lists.
2. Add a new patron list.
3. Go to add patrons page for the list. Note that there is a JavaScript in the
web developer tools console [1].
4. Type an existing name in the patron search box, for example: mary.
5. Note that the progress icon/circle appears very briefly, but the name is not
autocompeleted.
6. Note also that there is a 400 bad request error in the web developer tools
console.[2]
[1] JavaScript error when viewing Add patrons page for a patron list:
Uncaught TypeError: can't access property "_renderItem",
$(...).autocomplete(...).data(...) is undefined
patron_autocomplete
http://127.0.0.1:8081/intranet-tmpl/js/autocomplete/patrons_22.0600062.js:20
<anonymous>
http://127.0.0.1:8081/cgi-bin/koha/patron_lists/list.pl?patron_list_id=1:1080
jQuery 2
e
t
[2] 400 bad request error when typing a name in the autocomplete field:
GET http://127.0.0.1:8081/api/v1/patrons?term=mary
Status: 400 Bad Request
Version: HTTP/1.1
..
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list