Bug 39536 - "Add patron to list" silently fails if patron does not have cardnumber
Summary: "Add patron to list" silently fails if patron does not have 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 06:01 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 06:01:21 UTC
From the moremember.pl page, if you try to add a patron to a list via "Add patron to list", it will silently fail if the patron does not have a cardnumber.

This is particularly wild, because the patron_list_id and borrowernumber are sent in the request. But "patrons_to_add" is empty because there's no cardnumber.

Koha::List::Patron::AddPatronsToList actually supports both borrowernumber and cardnumber, so it should actually be a fairly easy fix in theory.

But we'd have to be careful about making the change to be clear across the board...