diff --git a/Koha/Account.pm b/Koha/Account.pm index eeb87a546c..2b7d78a9b2 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -268,7 +268,7 @@ sub pay { lang => $patron->lang, tables => { borrowers => $self->{patron_id}, - branches => $self->{library_id}, + branches => $library_id, }, substitute => { credit => $payment,