]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 25 Oct 2020 23:04:18 +0000 (00:04 +0100)
commit395bb760394e6947303de7e342882148944e9026
treecb55290ec728328420c71c1d92456d756e5d4e31
parent9e5ea4f5ab81cb500f112a5858130f82a6b4fd65
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>
Koha/Item.pm