Bugzilla – Attachment 81408 Details for
Bug 21641
Software error when checking out an item with a charge associated with it
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21641: Added C4::Accounts to getnextacctno() call
Bug-21641-Added-C4Accounts-to-getnextacctno-call.patch (text/plain), 1.18 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-10-28 13:16:32 UTC
(
hide
)
Description:
Bug 21641: Added C4::Accounts to getnextacctno() call
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-10-28 13:16:32 UTC
Size:
1.18 KB
patch
obsolete
>From 03c0752f4f11e6cc03173e07ecbcdbc5dc33d14a Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >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 <andrew.isherwood@ptfs-europe.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 9c8d5ba13e..50be185737 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -3191,7 +3191,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.19.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21641
:
81046
|
81138
|
81139
|
81140
|
81149
|
81200
|
81201
| 81408 |
81409
|
81410