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

--- Comment #1 from Tomás Cohen Arazi <[email protected]> ---
Created attachment 132544
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132544&action=edit
Bug 30393: Make datatables wrapper handle searching for % and _

This patch makes searching for '%' and '_' work by escaping those
symbols in the query before sending them to the API.

To test:
1. Go to the cities page
2. Add two cities:
   - 'Cordoba %'
   - 'Buenos Aires _'
3. Use the column search on the name, alternating _ and % as the query
=> FAIL: Weird behavior
4. Apply this patch and reload
5. Repeat 3
=> SUCCESS: Filtering works correctly!
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to