From 8c94406111dcb306480dae3018fc56db93e14393 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" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit 9973f0e986abf1db68dc177369f85126f77230d2) Signed-off-by: Frédéric Demians --- members/pay.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/members/pay.pl b/members/pay.pl index 62d810e19d..0f56a14fb2 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