]> git.koha-community.org Git - koha.git/commit
Bug 30183: Fetch flatPickr instance prior to custom search definition
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 14 Mar 2022 14:32:31 +0000 (14:32 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Mar 2022 13:40:55 +0000 (09:40 -0400)
commit911653f7ca0db96c6fe1ff6366e3f47250511254
treea6f0f37734802470e3acc2151108b5959f878265
parent7997f4a0bfb6174d7538ea13c6603e7281eb4dd3
Bug 30183: Fetch flatPickr instance prior to custom search definition

This patch updates teh search customisations in ill-list-table to
properly fetch the existing flatpickr instances for date searches.

To test:
1. Have at least one ILL request on the ILL requests page
2. Open the broser inspector
3. Choose a date on the left hand form
=> FAIL: Errors in the console, search doesn't work
4. Apply this patch
5. Reload
6. Repeat 2-3
=> SUCCESS: No more errors, filtering works!
7. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js