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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to