Koha-clms/circ
Baptiste Wojtkowski 43843b47df Bug 38847: Fix error when renewing an expired child patron without a guarantor
This fixes an internal server error when renewing an expired
child patron without a guarantor, when the ChildNeedsGuarantor
is set to "must have".

Test plan:
1. Create or edit a child patron:
   - Don't add a guarantor.
   - Set the "Expiry date" to a date in the past.
2. Set the ChildNeedsGuarantor system preference to "must have".
3. Refresh or view the patron's check out or details page, and
   select the "Renew" link under the attention heading -
   this generates an internal server error message.
4. Apply patch.
5. Repeat step 3, you will now get a standard error message
   "This patron could not be renewed: they need a guarantor."
6. Add a guarantor for the patron.
7. Repeat step 3, and click "Renew" - the patron is now renewed.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit b65eb561e9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2025-06-19 09:57:15 +02:00
..
add_message.pl Bug 37365: (QA follow-up) Add borrowernumber to referrer url 2024-11-07 17:32:44 +01:00
article-request-slip.pl Bug 38089: (follow-up) More fixes for errors in original submission 2024-10-11 11:13:47 +02:00
article-requests.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
bookcount.pl Bug 33149: Use template wrapper for breadcrumbs: Circulation part 1 2023-04-06 09:29:26 -03:00
branchoverdues.pl Bug 34478: op =~ ^cud- in pl/pm - Manual cud-email => email 2024-03-01 10:57:14 +01:00
branchtransfers.pl Bug 25682: Style transfers interface to match checkin page 2024-04-29 18:53:07 +02:00
checkout-notes.pl Bug 34478: Rename action with op - circ/checkout-notes 2024-03-01 10:56:39 +01:00
circulation-home.pl Bug 33961: Remove built-in offline circ tool 2023-06-12 16:53:25 -03:00
circulation.pl Bug 38847: Fix error when renewing an expired child patron without a guarantor 2025-06-19 09:57:15 +02:00
curbside_pickups.pl Bug 37761: Fix redirection on the tabs and buttons 2025-03-19 23:57:45 +01:00
del_message.pl Bug 34478: Manual fix - add op and change link to form - members-toolbar.inc / patron_messages.inc 2024-03-01 10:57:26 +01:00
hold-transfer-slip.pl Bug 38089: (follow-up) More fixes for errors in original submission 2024-10-11 11:13:47 +02:00
on-site_checkouts.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
overdue.pl Bug 33339: Prevent Formula Injection (CSV Injection) in CSV files 2024-11-14 10:46:31 +01:00
pendingbookings.pl Bug 33736: Add filter for holding library 2024-10-25 11:09:55 +02:00
pendingreserves.pl Bug 38239: Incorrect number of items to pull (in Holds to pull) with partially filled holds 2024-11-19 16:35:16 +01:00
renew.pl Bug 34478: Add 'op' to circ/renew.pl 2024-03-01 10:58:48 +01:00
request-article.pl Bug 34478: Rename action with op - circ/request-article 2024-03-01 10:56:39 +01:00
reserveratios.pl Bug 23208: Add ability to set a default hold ratio value 2024-03-25 09:53:22 +01:00
returns.pl Bug 28294: (follow-up) Adjust call to request transfer 2024-11-20 14:01:51 +01:00
set-library.pl Bug 36572: Fix and clean-up set library 2024-04-12 11:25:59 +02:00
transfer-slip.pl Bug 38089: (follow-up) More fixes for errors in original submission 2024-10-11 11:13:47 +02:00
transfers_to_send.pl Bug 35388: Add comment to 'Transfers to send' 2024-03-19 18:09:07 +01:00
transferstoreceive.pl Bug 24295: Remove GetTransfers from circ/transferstoreceive.pl 2022-08-26 15:42:52 -03:00
view_holdsqueue.pl Bug 28966: Prefetch patron data for holds queue viewer 2023-07-25 16:25:38 -03:00
waitingreserves.pl Bug 17338: Fix redirection to correct tabs on waitingreserves.pl 2025-05-26 20:17:04 +02:00