Bugzilla – Attachment 81256 Details for
Bug 21679
Software error when placing a hold on 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 21679: Fix incorrect call to getnextacctno
Bug-21679-Fix-incorrect-call-to-getnextacctno.patch (text/plain), 1.07 KB, created by
Andrew Isherwood
on 2018-10-26 08:28:33 UTC
(
hide
)
Description:
Bug 21679: Fix incorrect call to getnextacctno
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2018-10-26 08:28:33 UTC
Size:
1.07 KB
patch
obsolete
>From c740ac875d0f25fcdfdff8d09604c14df2bb49c9 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Fri, 26 Oct 2018 09:25:42 +0100 >Subject: [PATCH] Bug 21679: Fix incorrect call to getnextacctno > >The call to getnextacctno was attempting to be made to C4::Reserves >rather than to C4::Accounts. This patch addresses this by explicitly >stating the full path to the function. >--- > C4/Reserves.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 78e8f6a360..6affc5d13b 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -571,7 +571,7 @@ sub ChargeReserveFee { > INSERT INTO accountlines ( borrowernumber, accountno, date, amount, description, accounttype, amountoutstanding ) VALUES (?, ?, NOW(), ?, ?, 'Res', ?) > }; > my $dbh = C4::Context->dbh; >- my $nextacctno = &getnextacctno( $borrowernumber ); >+ my $nextacctno = C4::Accounts::getnextacctno( $borrowernumber ); > $dbh->do( $accquery, undef, ( $borrowernumber, $nextacctno, $fee, "Reserve Charge - $title", $fee ) ); > } > >-- >2.11.0
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 21679
: 81256