Bug 37204: (QA follow-up) Pass old_booking into GetPreparedLetter

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 <martin.renvoize@ptfs-europe.com>
Sponsored-by: Büchereizentrale Schleswig-Holstein <https://www.bz-sh.de/>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Martin Renvoize 2024-10-16 16:34:58 +01:00 committed by Katrin Fischer
parent d2c8bbd7cb
commit db8531c58b
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 4 additions and 1 deletions

View File

@ -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) {