From c4466e7d714d32808ee2e553320431005ec7cc69 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 21 Jun 2019 08:51:15 -0400 Subject: [PATCH] Bug 23181: Unable to use payment library in ACCOUNT_PAYMENT or ACCOUNT_WRITEOFF notices Do to a simple semantic typo, the branches key will always be null for the tables key of the parameters for GetPreparedLetter. Test Plan: 0) Activate UseEmailReceipts 1) Attempt to use [% branch.branchname %] in the ACCOUNT_PAYMENT notice 2) Note it produces no output 3) Apply this patch 4) Make another payment 5) You should now see the branche's name! Signed-off-by: Katrin Fischer Also requires UseEmailReceipts to be activated. Signed-off-by: Josef Moravec Signed-off-by: Martin Renvoize --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index d04c703671..b120faee0f 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -281,7 +281,7 @@ sub pay { lang => $patron->lang, tables => { borrowers => $self->{patron_id}, - branches => $self->{library_id}, + branches => $library_id, }, substitute => { credit => $payment, -- 2.39.5