From 04252903843e91a55e6840d2156512a53371c853 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 2 Mar 2018 15:04:10 +0000 Subject: [PATCH] Bug 19191: Remove need for bug 19966 Signed-off-by: Katrin Fischer --- Koha/Account.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index 5d696535a9..d2ecc7a272 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -270,11 +270,13 @@ sub pay { letter_code => uc("ACCOUNT_$type"), message_transport_type => 'email', lang => Koha::Patrons->find( $self->{patron_id} )->lang, - objects => { - patron => scalar Koha::Patrons->find( $self->{patron_id} ), - library => scalar Koha::Libraries->find( $self->{library_id} ), - offsets => \@account_offsets, - credit => $payment, + tables => { + borrowers => $self->{patron_id}, + branches => $self->{library_id}, + }, + substitute => { + credit => $payment, + offsets => scalar Koha::Account::Offsets->search( { id => { -in => [ map { $_->id } @account_offsets ] } } ), }, ) ) -- 2.15.1 (Apple Git-101)