Bug 32261: Patron autocomplete - do not empty text field
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 18 Nov 2022 08:52:35 +0000 (09:52 +0100)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Thu, 8 Dec 2022 10:42:24 +0000 (10:42 +0000)
commit43954eb464b15d69794cc43a0f24b4d4474cf1fe
tree77869d145b0626443b400f052845eb3abce130d5
parentbd9f46f9b03998a5c6b90f97f4e614cf108e4bb0
Bug 32261: Patron autocomplete - do not empty text field

The jQuery UI autocomplete is supposed to replace the text field with
the 'value' attribute of the selected item. As it does not exist it's
emptied. We should not replace what the user typed in.

Test plan:
Go to the Koha home page
Select "Search patrons" in the header
Type 'edn', it will return 1 result
Use the down key to select the item (it is not obvious but there is a
little change in the color when you select the item)
=> Without this patch the search field is emptied
=> With this patch applied the search field is not modified

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js