Bug 12595: Search a patron by his/her firstname and surname
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 17 Jul 2014 11:26:46 +0000 (13:26 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 18 Jul 2014 15:36:40 +0000 (12:36 -0300)
commit3178e7725d3a91435b7363c109d912a9bbe2cea0
tree241779bcc5d150148deaaf59cd077229633de14f
parent526af4ea075af1da77bf8797c32e855a14329231
Bug 12595: Search a patron by his/her firstname and surname

Before bug 9811, if you searched for "John Doe" and only 1 patron with
this firstname/surname existed, the patron detail page was displayed.

Now the result lists all patrons with ( firstname=john or doe ) or (
surname=john or doe). Which is quite annoying when you expect only 1
result.

Test plan:
0/ Create some patrons like: "John Doe", "Jane Doe", "John Smith".
1/ Search for "John Doe" in the patron search box
2/ Verify you got 2 results
3/ Apply the patch
4/ Search for "John Doe" in the patron search box
5/ Verify you are redirected to the right patron detail page.

Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Utils/DataTables/Members.pm