Bugzilla – Attachment 131661 Details for
Bug 30183
ILL table search filtering broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30183: Fetch flatPickr instance prior to custom search definition
Bug-30183-Fetch-flatPickr-instance-prior-to-custom.patch (text/plain), 1.84 KB, created by
Martin Renvoize (ashimema)
on 2022-03-14 14:33:53 UTC
(
hide
)
Description:
Bug 30183: Fetch flatPickr instance prior to custom search definition
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-03-14 14:33:53 UTC
Size:
1.84 KB
patch
obsolete
>From 32f0eca6c0f80ec191c755360b4691d119d3bcb3 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 14 Mar 2022 14:32:31 +0000 >Subject: [PATCH] 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. >--- > koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >index 414bcf8f22..920d6aed68 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >@@ -498,10 +498,10 @@ $(document).ready(function() { > > // Custom date range filtering > $.fn.dataTable.ext.search.push(function(settings, data, dataIndex) { >- var placedStart = illfilter_dateplaced_start.selectedDates[0]; >- var placedEnd = illfilter_dateplaced_end.selectedDates[0]; >- var modifiedStart = illfilter_datemodified_start.selectedDates[0]; >- var modifiedEnd = illfilter_datemodified_end.selectedDates[0]; >+ var placedStart = $('#illfilter_dateplaced_start').get(0)._flatpickr.selectedDates[0]; >+ var placedEnd = $('#illfilter_dateplaced_end').get(0)._flatpickr.selectedDates[0]; >+ var modifiedStart = $('#illfilter_datemodified_start').get(0)._flatpickr.selectedDates[0]; >+ var modifiedEnd = $('#illfilter_datemodified_end').get(0)._flatpickr.selectedDates[0]; > var rowPlaced = data[14] ? new Date(data[14]) : null; > var rowModified = data[16] ? new Date(data[16]) : null; > var placedPassed = true; >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30183
:
131661
|
131668
|
131913