Bug 37331

Summary: Renewing patron without guarantor causes 500 error
Product: Koha Reporter: Kelly McElligott <kelly>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: 24.05   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Kelly McElligott 2024-07-11 16:56:07 UTC
When a library activates the new system preference, ChildNeedsGuarantor and then renews a patron that does not have a guarantor, a 500 error appears.  It would more useful to libraries if there was a message explaining why the patron can't be renewed and allowing the library to add the guarantor instead of providing a 500 error.

Steps:
1. Turn on ChildNeedsGuarantor
2. Patron (of a patron category that needs a guarantor but doesn't have one linked) gets renewed
3. 500 error appears.