Bugzilla – Attachment 183173 Details for
Bug 40122
'Holds to pull' library filters don't work if library name contains parenthesis
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40122: [24.11] Dont attempt regex search for select dropdowns
Bug-40122-2411-Dont-attempt-regex-search-for-selec.patch (text/plain), 1.50 KB, created by
Pedro Amorim
on 2025-06-11 15:59:05 UTC
(
hide
)
Description:
Bug 40122: [24.11] Dont attempt regex search for select dropdowns
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-06-11 15:59:05 UTC
Size:
1.50 KB
patch
obsolete
>From 932e46ab9b2bf853cba19be69bd3480738726903 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >Date: Wed, 11 Jun 2025 12:27:43 +0000 >Subject: [PATCH] Bug 40122: [24.11] Dont attempt regex search for select > dropdowns > >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index 0caf1084f0a..20f0be4a6cc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -906,8 +906,8 @@ function _dt_add_delay_filters(table_dt, table_node) { > let col_input_search = DataTable.util.debounce(function (i, val) { > table_dt.column(i).search(val).draw(); > }, delay_ms); >- let col_select_search = DataTable.util.debounce(function (i, val) { >- table_dt.column(i).search(val, true, false).draw(); >+ let col_select_search = DataTable.util.debounce(function (i, val, regex_search = true) { >+ table_dt.column(i).search(val, regex_search, false).draw(); > }, delay_ms); > > $(table_node).find('thead tr:eq(1) th').each( function (visible_i) { >@@ -922,7 +922,7 @@ function _dt_add_delay_filters(table_dt, table_node) { > $(this).find("select") > .unbind() > .bind("keyup change", function(){ >- col_select_search(i, this.value) >+ col_select_search(i, this.value, false) > }); > }); > } >-- >2.39.5
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 40122
:
183171
|
183172
| 183173 |
183227
|
183319