Bug 40035

Summary: Manual restrictions added in memberentry.pl without a note or date are not saved
Product: Koha Reporter: Philip Orr <philip.orr>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: alex, 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 Philip Orr 2025-05-30 12:49:05 UTC
If you are currently editing a patron and in memberentry.pl you add a manual restriction by clicking on "Add manual restriction", but do not fill out the Comment or Expiration Date fields, the restriction will not be saved.
To replicate:
1. Go to a patron account
2. Edit them
3. "Add manual restriction"
4. Leave it set to "Manual" type, no entry in note or date, save the patron
5. There won't be a restriction in their account.
Comment 1 Alex Carver [Acerock7] 2026-01-21 16:05:47 UTC
This is also a problem when adding a new patron. Even with a note added AND an expiration date entered in the "Patron Restrictions" box, the restriction is not applied to the patron account after creation.

25.05.05