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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-2 / +1 lines)
Lines 302-308 Link Here
302
                        search_fields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname,surname,othernames,cardnumber,userid' | html %]";
302
                        search_fields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname,surname,othernames,cardnumber,userid' | html %]";
303
                    }
303
                    }
304
                    search_fields.split(',').forEach(function(e,i){
304
                    search_fields.split(',').forEach(function(e,i){
305
                        filters.push({["me."+e]:{"like":"%"+filter+(search_type == "contain" ? "%" : "" )}});
305
                        filters.push({["me."+e]:{"like":(search_type == "contain" ? "%" : "" ) + filter + "%"}});
306
                    });
306
                    });
307
                    [% IF Koha.Preference('ExtendedPatronAttributes') && extended_attribute_types %]
307
                    [% IF Koha.Preference('ExtendedPatronAttributes') && extended_attribute_types %]
308
                        filters.push({
308
                        filters.push({
309
- 

Return to bug 30063