From 9ffa73534b07c8cf9c5d3cf6079891cf0ba90ba9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 Mar 2012 10:00:14 -0500 Subject: [PATCH] Bug 7631 - Self checkout renewal fails because of reference to non-existent subroutine in sco-main.pl Changing "CanBookBeIssuedCheckout" to "CanBookBeIssued" To test, try to renew an item which has no renewals left. Before the patch you'll get an error: Undefined subroutine &main::CanBookBeIssuedCheckout called at /opac/sco/sco-main.pl line 135. After the patch you'll get the correct message about having no renewals left. Other tests: checking out a barcode which doesn't exist, checking out an item which is on hold for another patron. Signed-off-by: Julian Maurice Signed-off-by: Paul Poulain --- opac/sco/sco-main.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index 7e4f8103dd..f0ca37e989 100755 --- a/opac/sco/sco-main.pl +++ b/opac/sco/sco-main.pl @@ -132,7 +132,7 @@ elsif ( $op eq "checkout" ) { my $impossible = {}; my $needconfirm = {}; if ( !$confirmed ) { - ( $impossible, $needconfirm ) = CanBookBeIssuedCheckout( + ( $impossible, $needconfirm ) = CanBookBeIssued( $borrower, $barcode, undef, -- 2.39.2