Bug 29374: Don't crash if search engine returns a deleted record
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 20991feb62)
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
710344a560
commit
191569ebaa
|
|
@ -2041,7 +2041,7 @@ sub searchResults {
|
|||
$can_place_holds = 0;
|
||||
}
|
||||
} else {
|
||||
$can_place_holds = $biblio_object->items->filter_by_for_hold()->count;
|
||||
$can_place_holds = $biblio_object->items->filter_by_for_hold()->count if $biblio_object;
|
||||
}
|
||||
$oldbiblio->{norequests} = 1 unless $can_place_holds;
|
||||
$oldbiblio->{items_count} = $items_count;
|
||||
|
|
|
|||
Loading…
Reference in New Issue