[Koha-bugs] [Bug 31565] Patron search filter by category code with special character returns no results

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 16 16:15:25 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31565

--- Comment #6 from Lari Taskula <lari.taskula at hypernova.fi> ---
Created attachment 140709
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140709&action=edit
Bug 31565: Escape datatables MySQL special characters only in LIKE queries

Escaping \ yields no results when performing exact search in datatables.
This patch adds MySQL special character escaping only to LIKE searches.

To test:
1. Add following categorycode 'TEST\CAT' by SQL
insert into categories (categorycode,description) values ('TEST\\CAT',
'TEST\\CAT');
2. Add a patron into TEST\CAT category
3. Go to patron search
4. Limit search by category TEST\CAT
5. Observe no results
6. Apply patch
7. Refresh patron search page
8. Limit search by category TEST\CAT
9. Observe Koha redirecting you to patron you chose in step 2

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list