]> git.koha-community.org Git - koha.git/commit
Bug 26750: Deleted items not indexed
authorBjörn Nylén <bjorn.nylen@ub.lu.se>
Tue, 20 Oct 2020 12:11:16 +0000 (14:11 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 13 Nov 2020 18:20:50 +0000 (18:20 +0000)
commitaeb33f91a500c9b022777e858df9c916932f50e0
tree5ae4f1b8438a9a7b2b4b5e470c03de410e7da63e
parent710c9039ee6a1f465d1615f56ceafd3cb26fb184
Bug 26750: Deleted items not indexed

After deleting an item it is still searchable in the index. Similar to bug 26507 where record is reindexed before the database is changed.

To test:
1. Delete an item
2. Search the barcode in the main search box. You'll find the original record but wiht hte deleted item missing.
3. Apply patch.
4. Repeat steps 1-2 (with another item). No record should be found.

Note to test you have to have the indexer running, not the cron job, and it
needs to be running fast so that the index is updated before the delete
takes place

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 395bb760394e6947303de7e342882148944e9026)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Item.pm