From 0dfe4220907abac2c39864a9daa707c851c55bd1 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 1 Dec 2009 13:05:53 +0100 Subject: [PATCH] (bug #3823) on hold items in opac this fix C4::Items::GetItemsInfo for an old bug, that say all items are on hold if one is on hold. Signed-off-by: Henri-Damien LAURENT --- C4/Items.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 20ba5bf60e..3242d71676 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1289,7 +1289,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 @@ -1298,6 +1298,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 ) { -- 2.39.5