Bug 34256: Fix regression from 34092
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Fri, 14 Jul 2023 08:37:27 +0000 (08:37 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 14 Jul 2023 18:23:17 +0000 (15:23 -0300)
commitbcabb5d24712b23963c4616efae19e940cf2c544
tree206688486c609e46729afd63b297160a7d5dde2a
parent0992769f6ee935d7f12c127ab5df827768361585
Bug 34256: Fix regression from 34092

It appears search_fields variable got lost somewhere in my own rebases.
search_fields variable was not being considered as it should, in the function.
I think this patch fixes it.

This showed in the borrowernumer no longer being searchable:

* Use search filters in patron search
* Set 'Search field' to borrowernumber
* Search for 19 (Henry) or 41 (koha) in sample data
* No results :(
* Apply patch
* Search leads to the patron record again

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/staff-global.js