Bugzilla – Attachment 184084 Details for
Bug 40381
Koha/SearchEngine/Elasticsearch/ExportConfig.t generates warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t
Bug-40381-Remove-warning-from-KohaSearchEngineElas.patch (text/plain), 1.80 KB, created by
Jonathan Druart
on 2025-07-15 11:54:34 UTC
(
hide
)
Description:
Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-15 11:54:34 UTC
Size:
1.80 KB
patch
obsolete
>From 67bdbd5c90cc1533dfb8d31fdd0a92d810307f60 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 15 Jul 2025 13:54:05 +0200 >Subject: [PATCH] Bug 40381: Remove warning from > Koha/SearchEngine/Elasticsearch/ExportConfig.t > >DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'filter' on SearchMarcToField - perhaps you forgot to set its 'is_auto_increment' attribute during add_columns()? Treating 'filter' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/SearchField.pm line 42 >--- > .../Koha/SearchEngine/Elasticsearch/ExportConfig.t | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t >index 9fc6f7b57c5..f14e253b689 100755 >--- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t >+++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t >@@ -17,7 +17,8 @@ > > use Modern::Perl; > >-use Test::More tests => 19; >+use Test::More tests => 20; >+use Test::NoWarnings; > > use Koha::Database; > use Koha::SearchFields; >@@ -59,7 +60,8 @@ $search_field->add_to_search_marc_maps( > { > facet => 0, > suggestible => 0, >- sort => 0 >+ sort => 0, >+ filter => '', > } > ); > >@@ -76,7 +78,8 @@ $search_field->add_to_search_marc_maps( > { > facet => 0, > suggestible => 0, >- sort => 0 >+ sort => 0, >+ filter => '', > } > ); > >@@ -93,7 +96,8 @@ $search_field->add_to_search_marc_maps( > { > facet => 0, > suggestible => 1, >- sort => 0 >+ sort => 0, >+ filter => '', > } > ); > >-- >2.34.1
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 40381
: 184084