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
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-07-15 13:54:05 +02:00 committed by Lucas Gass
parent 9d17ce951d
commit c2df4af991
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 8 additions and 4 deletions

View File

@ -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 => '',
}
);