From e8232f4485cf7905f958eda8270e2037e727223e Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 16 Oct 2024 16:34:58 +0100 Subject: [PATCH] Bug 37204: (QA follow-up) Pass old_booking into GetPreparedLetter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thinking about the future, some libraries may wish to use the old_booking object details in their notice so I opt to pass it into GetPreparedLetter here to support that. Signed-off-by: Martin Renvoize Sponsored-by: Büchereizentrale Schleswig-Holstein --- Koha/Booking.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Booking.pm b/Koha/Booking.pm index c16ae91c4f..f3376af918 100644 --- a/Koha/Booking.pm +++ b/Koha/Booking.pm @@ -167,7 +167,10 @@ sub store { message_transport_type => 'email', branchcode => $pickup_library->branchcode, lang => $patron->lang, - objects => { booking => $self }, + objects => { + old_booking => $old_booking, + booking => $self + }, ); if ($letter) { -- 2.47.0