[Koha-bugs] [Bug 29374] New: searchResults explodes if biblio record has been deleted

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 29 15:40:25 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29374

            Bug ID: 29374
           Summary: searchResults explodes if biblio record has been
                    deleted
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: major
          Priority: P5 - low
         Component: Searching
          Assignee: jonathan.druart+koha at gmail.com
          Reporter: jonathan.druart+koha at gmail.com
        QA Contact: testopia at bugs.koha-community.org

>From commit 1ad0e172cddce560afcc23579948d0c4a1eca71c
     Bug 3142: Use filter_by_for_holds where holdability is calculated

+            $can_place_holds =
$biblio_object->items->filter_by_for_hold()->count;

This is exploding early in C4::Search::searchResults if the record is indexed
but deleted from the DB.


Can't call method "items" on an undefined value at
/kohadevbox/koha/C4/Search.pm line 2000                                        
                                                                               
          C4::Search::searchResults('HASH(0x55dc9a4076c0)', 'kw,wrdl: d', 432,
20, 0, undef, 'ARRAY(0x55dc9a3757e8)', 'HASH(0x55dc99f94a50)') called at
/kohadevbox/koha/opac/opac-search.pl line 613

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list