Bugzilla – Attachment 140984 Details for
Bug 31565
Patron search filter by category code with special character returns no results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31565: (QA follow-up) Remove support for _ as wildcard in -like queries
Bug-31565-QA-follow-up-Remove-support-for--as-wild.patch (text/plain), 1.31 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-09-26 13:34:58 UTC
(
hide
)
Description:
Bug 31565: (QA follow-up) Remove support for _ as wildcard in -like queries
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-09-26 13:34:58 UTC
Size:
1.31 KB
patch
obsolete
>From 834c4a00cc1512e55a6fe94791b30fa28eebcdd6 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 26 Sep 2022 10:32:06 -0300 >Subject: [PATCH] Bug 31565: (QA follow-up) Remove support for _ as wildcard in > -like queries > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index a22d5dd4d55..fb55a9b2713 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -589,7 +589,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { > criteria = "exact"; > } else { > // escape SQL LIKE special characters % and _ >- value = value.replace(/(\%|\_|\\)/g, "\\$1"); >+ value = value.replace(/(\%|\\)/g, "\\$1"); > } > part[!attr.includes('.')?'me.'+attr:attr] = criteria === 'exact' > ? value >-- >2.34.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 31565
:
140636
|
140637
|
140709
|
140753
|
140754
|
140755
|
140756
|
140757
|
140758
|
140978
| 140984 |
142861