Bug 32772: Make all autocomplete searches 'starts_with'
authorNick Clemens <nick@bywatersolutions.com>
Tue, 31 Jan 2023 20:15:09 +0000 (20:15 +0000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 7 Feb 2023 15:21:51 +0000 (15:21 +0000)
commitfa138594490837e3d9a77443150361228b02f481
treed7e9c182fb0077d71971ef7853332da6c3bb742b
parent8dce87309271d44f9f947d5f242bef483a83d695
Bug 32772: Make all autocomplete searches 'starts_with'

To test:
1 - Add patrons with surname Fitzwilliams and Williams
2 - Enable 'PatronAutocomplete' syspref
3 - In checkout box type 'Will'
4 - You see fitwilliams first
5 - Apply patch
6 - Type 'Will'
7 - Autocomplete does not suggest Fitzwilliam, only Williams
8 - Type '%will'
9 - Fitzwilliams is suggested

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 80a61a0f66181d26d8041c886630fd64cbd0e3f1)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js