View | Details | Raw Unified | Return to bug 32772
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js (-2 / +1 lines)
Lines 22-28 function patron_autocomplete(node, options) { Link Here
22
                    let subquery_or = [];
22
                    let subquery_or = [];
23
                    defaultPatronSearchFields.split(',').forEach(function(field,i){
23
                    defaultPatronSearchFields.split(',').forEach(function(field,i){
24
                        subquery_or.push(
24
                        subquery_or.push(
25
                            {["me."+field]: {'like': '%' + pattern + '%'}}
25
                            {["me."+field]: {'like': pattern + '%'}}
26
                        );
26
                        );
27
                    });
27
                    });
28
                    subquery_and.push(subquery_or);
28
                    subquery_and.push(subquery_or);
29
- 

Return to bug 32772