[Koha-bugs] [Bug 10131] System preference search doesn't work for search terms starting with *

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 14 13:49:38 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10131

--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 37818
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37818&action=edit
Bug 10131: Add a fallback if the pref search is not a valid regex

It's possible to search prefs using a regex.
But it the regex is not correctly written, the app explodes.
We should provide a fallback.

Test plan:
0/ Does not apply the patch
1/ Search for sysprefs with "notes.*", note the number of results
2/ Search for *notes*, boom
3/ Apply the patch
4/ Repeat 1 and confirm you get the same number of results
5/ Repeat 2 and confirm you don't get the error anymore

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


More information about the Koha-bugs mailing list