[Koha-bugs] [Bug 34941] Patron search to find patrons with hyphens when they haven't been added in the search
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 12 10:14:03 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34941
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart+koha at gmail.
| |com
--- Comment #2 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Hi Wainui, please try this change:
diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js
b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js
index 86792041afe..6bdee1f0723 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js
+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js
@@ -555,7 +555,7 @@ function buildPatronSearchQuery(term, options) {
let q = [];
let leading_wildcard;
let search_fields;
- let patterns = term.split(/[\s,]+/).filter(function (s) { return s.length
});
+ let patterns = term.split(/[\s,-]+/).filter(function (s) { return s.length
});
// Bail if no patterns
if (patterns.length == 0) {
--
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