From: Nahuel ANGELINETTI Date: Tue, 1 Dec 2009 12:05:53 +0000 (+0100) Subject: (bug #3823) on hold items in opac X-Git-Tag: v3.00.05~47 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=0dfe4220907abac2c39864a9daa707c851c55bd1;p=koha.git (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 --- 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 ) {