Bugzilla – Attachment 54579 Details for
Bug 16272
Transform checkout from on-site checkout to regular checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16272 [QA Followup] - Indexer fails on indexing temparary testing records
Bug-16272-QA-Followup---Indexer-fails-on-indexing-.patch (text/plain), 1.07 KB, created by
Kyle M Hall (khall)
on 2016-08-18 16:37:05 UTC
(
hide
)
Description:
Bug 16272 [QA Followup] - Indexer fails on indexing temparary testing records
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-08-18 16:37:05 UTC
Size:
1.07 KB
patch
obsolete
>From a447287e7c3471ad4e3e85ea381312d1cfcd8c73 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 18 Aug 2016 16:33:00 +0000 >Subject: [PATCH] Bug 16272 [QA Followup] - Indexer fails on indexing temparary > testing records > >--- > Koha/ElasticSearch/Indexer.pm | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/Koha/ElasticSearch/Indexer.pm b/Koha/ElasticSearch/Indexer.pm >index 258c6c5..3c6d144 100644 >--- a/Koha/ElasticSearch/Indexer.pm >+++ b/Koha/ElasticSearch/Indexer.pm >@@ -177,8 +177,10 @@ sub _sanitise_records { > # the Tannhauser gate. MARC records where 999$c doesn't match the > # biblionumber column. All those moments will be lost in time... like > # tears in rain... >- $rec->delete_fields($rec->field('999')); >- $rec->append_fields(MARC::Field->new('999','','','c' => $bibnum, 'd' => $bibnum)); >+ if ( $rec ) { >+ $rec->delete_fields($rec->field('999')); >+ $rec->append_fields(MARC::Field->new('999','','','c' => $bibnum, 'd' => $bibnum)); >+ } > } > } > >-- >2.1.4
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 16272
:
50606
|
50607
|
51331
|
51332
|
51333
|
54498
|
54499
|
54523
|
54524
|
54526
|
54527
|
54528
|
54529
|
54579
|
54580