From 7a7531e21964992c20ca0c5a6e75b4c3a7a53178 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Wed, 24 Oct 2018 03:37:57 +0000 Subject: [PATCH] Bug 21641: Added C4::Accounts to getnextacctno() call Test plan: 1. Fetch and checkout the master branch 2. Checkout an item with a rental charge associated with it to a user and notice an error is thrown 3. Apply patch 4. Restart memcached and plack 5. Repeat steps 1 and 2 and notice the checkout happens successfully Sponsored-By: Catalyst IT Signed-off-by: Andrew Isherwood Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens (cherry picked from commit 344dba2fb84a743603c1c51294be4e378e6e5dc7) Signed-off-by: Martin Renvoize (cherry picked from commit 5c62543310c94b179dd3c8c93f4f79a414be5980) Signed-off-by: Fridolin Somers --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 7b7ecb7ce5..ea1b500f8a 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3192,7 +3192,7 @@ sub AddIssuingCharge { # FIXME What if checkout does not exist? - my $nextaccntno = getnextacctno($checkout->borrowernumber); + my $nextaccntno = C4::Accounts->getnextacctno($checkout->borrowernumber); my $manager_id = 0; $manager_id = C4::Context->userenv->{'number'} if C4::Context->userenv; -- 2.39.5