]> git.koha-community.org Git - koha.git/commit
Bug 32772: Make all autocomplete searches 'starts_with'
authorNick Clemens <nick@bywatersolutions.com>
Tue, 31 Jan 2023 20:15:09 +0000 (20:15 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 6 Feb 2023 21:32:58 +0000 (18:32 -0300)
commit80a61a0f66181d26d8041c886630fd64cbd0e3f1
tree9b762e2c60a814736a033e04a2a3ca2f2dddc0a1
parentadb863b219a1b25dfd6bafbe8344e51a4317381d
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>
koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js