Bug 41734

Summary: Need way to clear mandatory patron attributes once patron is no longer in a category using that attribute
Product: Koha Reporter: hebah
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description hebah 2026-01-29 17:51:20 UTC
Scenario: library uses a reciprocal borrowing patron category and wants to track what neighboring area patrons are coming from, attribute is limited to patron category and mandatory. Patron moves, updates membership to be no longer reciprocal. The attribute cannot be removed while the patron is in a category using it, and the option disappears from the edit form once their new category no longer uses that attribute, but the data is left behind. 

A workaround is to blank that out with the batch patron modification tool, but it would be nice if, when moving a patron out of a category with a mandatory attribute, Koha offered a prompt to remove the no-longer-applicable attribute data.