From 6a4dbee67140f83eaa13f060fd74edfe3021516b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 5 Feb 2016 10:58:20 +0000 Subject: [PATCH] Bug 15746: Same fix for "write off" Same fix as before for the "Write off" button next to the "Pay" button. --- members/pay.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/members/pay.pl b/members/pay.pl index b2e3a1f..f1025f4 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -67,8 +67,7 @@ our $borrower = GetMember( borrowernumber => $borrowernumber ); our $user = $input->remote_user; $user ||= q{}; -my $branches = GetBranches(); -our $branch = GetBranch( $input, $branches ); +our $branch = C4::Context->userenv->{'branch'}; my $writeoff_item = $input->param('confirm_writeoff'); my $paycollect = $input->param('paycollect'); -- 2.1.0