[Koha-patches] [PATCH] (bug #3823) on hold items in opac

Nahuel ANGELINETTI nahuel.angelinetti at biblibre.com
Tue Dec 1 13:06:52 CET 2009


this fix C4::Items::GetItemsInfo for an old bug, that say all items are on hold if one is on hold.
---
 C4/Items.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/C4/Items.pm b/C4/Items.pm
index f15f8d7..747cef7 100644
--- a/C4/Items.pm
+++ b/C4/Items.pm
@@ -1291,7 +1291,7 @@ sub GetItemsInfo {
     $sth->execute($biblionumber);
     my $i = 0;
     my @results;
-    my ( $date_due, $count_reserves, $serial );
+    my $serial;
 
     my $isth    = $dbh->prepare(
         "SELECT issues.*,borrowers.cardnumber,borrowers.surname,borrowers.firstname,borrowers.branchcode as bcode
@@ -1300,6 +1300,7 @@ sub GetItemsInfo {
        );
 	my $ssth = $dbh->prepare("SELECT serialseq,publisheddate from serialitems left join serial on serialitems.serialid=serial.serialid where serialitems.itemnumber=? "); 
 	while ( my $data = $sth->fetchrow_hashref ) {
+	    my $count_reserves;
         my $datedue = '';
         $isth->execute( $data->{'itemnumber'} );
         if ( my $idata = $isth->fetchrow_hashref ) {
-- 
1.6.3.3




More information about the Koha-patches mailing list