]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 22 Mar 2022 20:17:33 +0000 (10:17 -1000)
commit5a67364da5f5a456904a9c4a1acd440b89705ed5
treec3f76905c92486f1f1804782574ed75078ff61da
parenta8636478c269100b027ef00e5679e1e5c1173e99
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>
koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js