Bug 39535 - Patron search in patron lists does not work for patrons without cardnumber
Summary: Patron search in patron lists does not work for patrons without cardnumber
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-03 05:53 UTC by David Cook
Modified: 2025-04-03 06:01 UTC (History)
2 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.