]> git.koha-community.org Git - koha.git/commit
Bug 18094: Only search in searchable patron attributes if searching in standard fields
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 14 Feb 2017 15:22:40 +0000 (15:22 +0000)
committerMason James <mtj@kohaaloha.com>
Mon, 3 Apr 2017 15:44:52 +0000 (03:44 +1200)
commitb696300c3a2ddbd670775fe22a0cb95b61751abf
tree2bd68bdba169f1de7d1980391d826212a9baf72d
parentdde4036df4fba9b8d3652a78c320c42f9e71c660
Bug 18094: Only search in searchable patron attributes if searching in standard fields

Test plan:
- Add a new patron attrbute and mark it searchable
- Populate a new patron with 'potato' in that field
- Add/edit another patron to have email potato@invalidemail.com'
- Perform a patron search with query 'potato' (in standard fields)
=> Both patrons are returned
- Perform a patron search with filters 'Email' and query 'potato'
=> Only 1 patron is returned and you are redirected to the patron detail page.

Followed test plan, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 5823d4ca6a71404d502eeb7f1bf5dd152fd98e22)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
C4/Utils/DataTables/Members.pm