Bug 41027

Summary: Ability to delete repeatable required attributes
Product: Koha Reporter: Sara Brown <sbrown>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle
Version: 25.05   
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 Sara Brown 2025-10-15 15:21:32 UTC
If a library has an attribute that is both repeatable and mandatory, they can't delete one of the attribute values if it's no longer needed. For instance, a library may have a 'Parent/guardian' attribute, and a patron could have it repeated to list two parents/guardians - but then if one of the guardians should be removed, the second instance of the attribute can't be deleted. To recreate:

-Create an attribute that is mandatory and repeatable
-Add the attribute twice to a patron record, and save
-Open the patron record for editing, and clear the data from the second instance of the attribute
-Note that the second instance can't be deleted, and the patron record can't be saved with that attribute empty