Bug 39228

Summary: Patron search not correctly limited by branch if branch codes contain overlapping letters within branchcode
Product: Koha Reporter: hebah
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall, lucas
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description hebah 2025-03-03 15:46:18 UTC
TO recreate:
Have at least two branches in the site where the code of one branch appears within the code of another (BOOK and BOOKMOBILE work, or MAIN and a branchcode of AI or IN).
Have at least a patron of each category to see results easily.
Run a patron search for all patrons of BOOK branch. See that results include both patrons of BOOK and BOOKMOBILE.
It appears that the branchcode is being searched as a 'contains' search, perhaps, instead of exact match on branchcode.