Bugzilla – Attachment 127096 Details for
Bug 29374
searchResults explodes if biblio record has been deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29374: Don't crash if search engine returns a deleted record
Bug-29374-Dont-crash-if-search-engine-returns-a-de.patch (text/plain), 891 bytes, created by
Jonathan Druart
on 2021-10-29 13:41:13 UTC
(
hide
)
Description:
Bug 29374: Don't crash if search engine returns a deleted record
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-29 13:41:13 UTC
Size:
891 bytes
patch
obsolete
>From e866ba98b0efddc11c802e7705151d129f6d4d81 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 29 Oct 2021 12:27:25 +0200 >Subject: [PATCH] Bug 29374: Don't crash if search engine returns a deleted > record > >--- > C4/Search.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index f36e3364b36..454f6d38488 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1996,7 +1996,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; >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29374
: 127096