From 9973f0e986abf1db68dc177369f85126f77230d2 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. Signed-off-by: Hector Castro Signed-off-by: Kyle M Hall Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com (cherry picked from commit efad45a0e39703017a894d3ffdd1a7078d13af60) Signed-off-by: Julian Maurice --- members/pay.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/members/pay.pl b/members/pay.pl index b2e3a1f904..f1025f4367 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.39.5