Bug 39535

Summary: Patron search in patron lists does not work for patrons without cardnumber
Product: Koha Reporter: David Cook <dcook>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39536
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description David Cook 2025-04-03 05:53:35 UTC
When you "Add patrons" in a "Patron list", there is a "Patron search" box which does an API search.

If the patron found does not have a cardnumber, a "null" value is used instead and adding the patron to the list silently fails. 

In 2025, many libraries don't use cardnumbers anymore. Cardnumber is also a nullable field in the database, so it does not make sense to use it in lieu of the real patron identifier (ie the borrowernumber).

We should be using borrowernumber for this feature.