From e34a78ba6ddbf0c6250538e42380210d7a993cef Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Sun, 1 Jun 2014 16:58:52 +0300 Subject: [PATCH] Bug 12339 - catalogue/search.pl biblio availability counts items not on hold as on hold To replicate the issue: Make a search in catalogue/search.pl. Find a Record with lots of holds. (and less than 20 items, otherwise counts are not accurate) Items which should be available, are counted as unavailable in the 'availability'-portion in the Record result details of catalogue/search.pl if the biblio has holds in the Reserved-status. --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 09c1951..54723b8 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1948,7 +1948,7 @@ sub searchResults { # should map transit status to record indexed in Zebra. # ($transfertwhen, $transfertfrom, $transfertto) = C4::Circulation::GetTransfers($item->{itemnumber}); - $reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber}, $oldbiblio->{biblionumber} ); + $reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber}, undef ); } # item is withdrawn, lost, damaged, not for loan, reserved or in transit -- 1.8.1.2