Bugzilla – Attachment 95235 Details for
Bug 7611
Show the NOT_LOAN authorised values for item status in XSLT OPAC search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23986: Pass strings to Catmandu for deletion
Bug-23986-Pass-strings-to-Catmandu-for-deletion.patch (text/plain), 1.54 KB, created by
Nick Clemens (kidclamp)
on 2019-11-08 16:58:04 UTC
(
hide
)
Description:
Bug 23986: Pass strings to Catmandu for deletion
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-11-08 16:58:04 UTC
Size:
1.54 KB
patch
obsolete
>From 6f32d98a220a841e32117150673707daaf26ae35 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 7 Nov 2019 19:38:24 +0000 >Subject: [PATCH] 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 > >https://bugs.koha-community.org/show_bug.cgi?id=7611 >--- > Koha/SearchEngine/Elasticsearch/Indexer.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/SearchEngine/Elasticsearch/Indexer.pm b/Koha/SearchEngine/Elasticsearch/Indexer.pm >index 3610f0191d..504ccc5856 100644 >--- a/Koha/SearchEngine/Elasticsearch/Indexer.pm >+++ b/Koha/SearchEngine/Elasticsearch/Indexer.pm >@@ -303,7 +303,7 @@ sub delete_index { > ) > ); > } >- $self->store->bag->delete($_) foreach @$biblionums; >+ $self->store->bag->delete("$_") foreach @$biblionums; > $self->store->bag->commit; > } > >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7611
:
7905
|
7906
|
7907
|
60816
|
62930
|
62931
|
85115
|
92495
|
92496
|
94026
|
94212
|
95060
|
95061
|
95235
|
95236
|
95237
|
95238
|
95239
|
95240
|
97804
|
97805
|
97806
|
97807
|
97808
|
99074
|
99075
|
99076
|
99077
|
99078
|
99163