Bug 40020: Remove warnings from Koha/AdditionalContents.t

Test plan:
  prove t/db_dependent/Koha/AdditionalContents.t
should return green

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 827ad21244)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-05-28 16:51:37 +02:00 committed by Paul Derscheid
parent 3284f58e95
commit ef3ee7d69c
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
2 changed files with 3 additions and 2 deletions

View File

@ -73,7 +73,7 @@ location is one of this:
sub search_for_display {
my ( $self, $params ) = @_;
my $lang = $params->{lang};
my $lang = $params->{lang} || q{};
# If lang is not default, we will search for entries matching $lang but fallback to default if $lang is not found
# Then we need a subquery count in where clause; DBIx::Class/SQL::Abstract does not support it, fallback to literal SQL

View File

@ -19,8 +19,9 @@
use Modern::Perl;
use Test::More tests => 7;
use Test::More tests => 8;
use Test::Exception;
use Test::NoWarnings;
use Koha::AdditionalContents;
use Koha::Database;