Bug 34256: Fix regression from 34092
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Fri, 14 Jul 2023 08:37:27 +0000 (08:37 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jul 2023 11:42:51 +0000 (12:42 +0100)
commit681c635024146ec4f4ca670207f19f6c033b6053
tree4170fb86d3a1418abc68de3c09405f733942a44b
parent86c15fca16170eacadce4ab3fd6473cee5643fdb
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>
(cherry picked from commit bcabb5d24712b23963c4616efae19e940cf2c544)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/staff-global.js