From 0a79d2542178439e6dee39adc669cdeeecf5207e 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch updates the call to cancel such that we pass the currently logged in users borrowernumber instead of their userid. Signed-off-by: Joonas Kylmälä Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall --- 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.39.5