Bug 36915: (QA follow-up) Passing less to encourage traversal

I generally push for contextual use of accessors in TT notices and try
to reduce extra lookups.

In this case we can access the pickup library branchname directly using
the pickup_library relation available to us in the booking object we
pass.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Martin Renvoize 2024-08-15 15:29:30 +01:00 committed by Katrin Fischer
parent c0af0dad35
commit a3a1d7e253
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ sub delete {
message_transport_type => 'email',
branchcode => $pickup_library->branchcode,
lang => $patron->lang,
objects => { booking => $self, branch => $pickup_library }
objects => { booking => $self }
);
if ($letter) {

View File

@ -64,7 +64,7 @@ tables:
- "<br>"
- "Kind regards<br>"
- "<br>"
- "[% branch.branchname %]"
- "[% booking.pickup_library.branchname %]"
- module: catalogue
code: TICKET_ACKNOWLEDGE