Koha-clms/Koha/SearchEngine/Elasticsearch
Nick Clemens cdea121ddb
Bug 23986: Pass strings to Catmandu for deletion
The deletion subroutine expects to get a string, this is fine in most places, but when
we sort our records for batch deletion they are cast to numbers and the delete is not processed.

This patch quotes the biblionumbers as strings before passing them to Catmandu

To aid in detecting orphaned records you can use the patches on bug 22831

To test:
 1 - Have or create a bib
 2 - Go to Tools->Batch record deletion
 3 - Click 'Enter a list of record numbers'
 4 - Enter the biblionumber'
 5 - Confirm deletion
 6 - Search for the record, it still appears
 7 - Apply patch, restart all the things
 8 - Repeat 1-6
 9 - This time the record is deleted
10 - Test other methods of record deletion to confirm the record is removed

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-11 10:31:53 +00:00
..
Indexer.pm Bug 23986: Pass strings to Catmandu for deletion 2019-11-11 10:31:53 +00:00
QueryBuilder.pm Bug 23719: (follow-up) Add warn when passed invalid search field in marclist 2019-11-06 17:06:38 +00:00
Search.pm Bug 22592: Add index scan emulation to Elasticsearch 2019-11-03 07:51:04 +00:00