Bug 6127

Summary: Setting library on patron search brings back all patrons regardless of search
Product: Koha Reporter: Liz Rea <wizzyrea>
Component: PatronsAssignee: Kyle M Hall <kyle.m.hall>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: P5 - low CC: gmcharlt, koha.sekjal, nengard, ruth, wizzyrea
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6513
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 6253    

Description Liz Rea 2011-04-07 21:20:39 UTC
Steps to duplicate:

Enter a patron name in the patron search box
Click the [+]
Select a specific library
Click Search

All patrons from the selected library are returned alphabetically.
Comment 1 Liz Rea 2011-04-07 21:23:33 UTC
Confirmed this still happens even if you set the library first, then type in your search
Comment 2 Ian Walls 2011-04-19 17:38:20 UTC
This is because the branchcode or patron category "limit" is being passed to Search() in a way that implicitly OR's the results, rather than ANDing them.  Unfortunately, with the currently implementation of Search(), this cannot be fixed without losing search on Extended Attributes.
Comment 3 Nicole C. Engard 2011-06-25 21:04:53 UTC
The patch for 6513 has code that will solve this problem.
Comment 4 D Ruth Holloway 2011-11-22 16:27:09 UTC
*** Bug 6500 has been marked as a duplicate of this bug. ***
Comment 5 D Ruth Holloway 2011-11-22 16:28:31 UTC
I'm also observing this behavior if you limit by patron category!
Comment 6 Liz Rea 2011-11-22 21:47:28 UTC
This should have been fixed by bug 6253, and I do not observe this behavior in master.
Comment 7 Liz Rea 2011-11-28 16:36:21 UTC
Fixed by development for bug 6253.