]> git.koha-community.org Git - koha.git/commit
Bug 34083: Add searching for full term on patron auto-complete
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Wed, 21 Jun 2023 16:10:17 +0000 (16:10 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Jun 2023 14:00:56 +0000 (11:00 -0300)
commita8e9b25d8e1a1da19a22f20c3cd74ed8a32e3ffb
treea8f2366ac7af82c04c3f0e5115f5418ba6fd0575
parentd7e189b5bf187184c83645b5d26cc49b56d8f408
Bug 34083: Add searching for full term on patron auto-complete

To reproduce, on k-t-d:
1) Create a new patron of category 'School'
2) Enter 'Middle school high school' on the mandatory 'Name' field and put something in 'Card number:'
3) Visit patron lists at /cgi-bin/koha/patron_lists/lists.pl and click 'New patron list'
4) Put something in 'Name:' and click 'Save'
5) On the 'Patron search' input, enter 'middle school high school' slowly and observe the auto-complete behaviour
6) Notice how after you start typing the second word, the auto complete results vanish.
7) Apply patch, repeat plan and verify it now works as expected.

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js