From c815af0c9c53c6923a74d231f58d3663f2a1f893 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 11 Nov 2021 10:56:45 +0000 Subject: [PATCH] Bug 29457: Pass context borrowernumber This patch updates the call to cancel such that we pass the currently logged in users borrowernumber instead of their userid. --- members/cancel-charge.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/cancel-charge.pl b/members/cancel-charge.pl index 2f5ff42514..5483342863 100755 --- a/members/cancel-charge.pl +++ b/members/cancel-charge.pl @@ -50,7 +50,7 @@ my $charge = Koha::Account::Lines->find($accountlines_id); $charge->cancel( { branch => C4::Context->userenv->{'branch'}, - staff_id => $user + staff_id => C4::Context->userenv->{'number'} } ); -- 2.20.1