Bug 31565: Fix datatables searching escape for exact search
authorLari Taskula <lari.taskula@hypernova.fi>
Wed, 14 Sep 2022 14:34:48 +0000 (14:34 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Sep 2022 18:03:07 +0000 (15:03 -0300)
commit41d0daaff8ac04d58fd44f3a35c4c7be2197a9fe
tree390ad7dc6ddbc7978915dfc26697b9336dbaa820
parent277e19bd10a1e2f2ae39b50e25f58c9938d1a2c3
Bug 31565: Fix datatables searching escape for exact search

To test:
1. Add a new patron category with categorycode 'TEST_CAT'
2. Add a patron to category 'TEST_CAT'
3. Go to Patrons search view
4. Under "Search for patron" filters, filter by category you created at step 1
5. Click Search
6. Observe no results
7. Apply this patch and reload
8. Repeat 3-5
9. Observe expected result

Double check tests from Bug 30393 still work as expected:

10. Go to the cities page
11. Add two cities:
   - 'Cordoba %'
   - 'Buenos Aires _'
   - 'London \'
12. Use the column search on the name, alternating _, \ and % as the query
=> SUCCESS: Filtering works correctly!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/datatables.js