Bugzilla – Attachment 35040 Details for
Bug 13025
Software error: Undefined subroutine &C4::Circulation::HasOverdues called at /home/koha/kohaclone/C4/Circulation.pm line 1925
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 13025 - Software error: Undefined subroutine &C4::Circulation::HasOverdues called at /home/koha/kohaclone/C4/Circulation.pm line 1925
SIGNED-OFF-Bug-13025---Software-error-Undefined-su.patch (text/plain), 3.23 KB, created by
Kyle M Hall (khall)
on 2015-01-09 11:49:09 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 13025 - Software error: Undefined subroutine &C4::Circulation::HasOverdues called at /home/koha/kohaclone/C4/Circulation.pm line 1925
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-01-09 11:49:09 UTC
Size:
3.23 KB
patch
obsolete
>From 1e8fe7d224ddd10473a5646449770f499d1be7b6 Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> >Date: Thu, 8 Jan 2015 14:50:52 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 13025 - Software error: Undefined subroutine &C4::Circulation::HasOverdues called at /home/koha/kohaclone/C4/Circulation.pm line 1925 > >This error only appears when using the SIPServer, it doesn't manifest when using the SIP unit tests >or when using the staff client. > >-------------------- > ------------------ > PREPARE THE TEST > ------------------ >-------------------- > >0a. Find a borrower. >0b. Find an Item (cardnumber 'debar123') and check-out to the borrower >0c. Find a borrower and add a manual debarrment to it, indefinetely in effect. > This is the default behaviour. >0d. Configure and start a SIP-server which you can access with telnet. > See http://wiki.koha-community.org/wiki/Koha_SIP2_server_setup > In this example, the Borrower defined as the Check-out/in machine has the following credentials: > username: herkules password: palautathan branchcode: JOE_JOE > but you are free to use your own, it doesn't affect this test plan. >0e. access your server with telnet > >----------------------- > --------------------- > REPLICATE THE ISSUE > --------------------- >----------------------- >1. Paste the following SIP-command to login: >9300CNherkules|COpalautathan|CPJOE_JOE| >2. Paste the following SIP-command to check-in the Item of the debarred Borrower: >09N20140721 07501620140721 075016AP|AO|ABdebar123|AC|BIN| >3. The connection should die and in the SIP Server's error log you can find the following error: >Software error: Undefined subroutine &C4::Circulation::HasOverdues called at /home/koha/kohaclone/C4/Circulation.pm line 1925 > >-------------------- > ------------------ > AFTER THIS PATCH > ------------------ >-------------------- > >Redo steps 1-2. >3. No error is given and the connection doesn't die. > >No unit tests included and never will, because setting up the test environment would be very tedious. >It is entirely possible but the scaffolding required is beyond the scope of this patch. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Circulation.pm | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 5cd8ba3..dd081af 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2017,7 +2017,7 @@ sub AddReturn { > if ( $borrowernumber > && $borrower->{'debarred'} > && C4::Context->preference('AutoRemoveOverduesRestrictions') >- && !HasOverdues( $borrowernumber ) >+ && !C4::Members::HasOverdues( $borrowernumber ) > && @{ GetDebarments({ borrowernumber => $borrowernumber, type => 'OVERDUES' }) } > ) { > DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' }); >@@ -2866,7 +2866,7 @@ sub AddRenewal { > my $borrower = C4::Members::GetMember( borrowernumber => $borrowernumber ); > if ( $borrowernumber > && $borrower->{'debarred'} >- && !HasOverdues( $borrowernumber ) >+ && !C4::Members::HasOverdues( $borrowernumber ) > && @{ GetDebarments({ borrowernumber => $borrowernumber, type => 'OVERDUES' }) } > ) { > DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' }); >-- >1.7.2.5
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 13025
:
35037
|
35040
|
35087