[Koha-bugs] [Bug 30386] Prevent search errors if deleted record still remains in search indexes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 28 17:10:35 CEST 2022


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

--- Comment #1 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 132349
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132349&action=edit
Bug 30386: Prevent search errors if deleted record still remains in search
indexes

If a bib is deleted, but for some reason doesn't get deleted from the search
indexes, any search where that record is a result will produce the error:

Can't call method "items" on an undefined value at
/usr/share/koha/lib/C4/Search.pm line 2064.

Test Plan:
1) Enable item-level_itypes
2) Create 3 records in Koha that share a word
3) Search for that word, note your 3+ results
4) Delete one of those recordst from the database using koha-mysql
5) Search for the word again
6) Note the error!
7) Apply this patch
8) Search for the word again
9) Note you get results!

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


More information about the Koha-bugs mailing list