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:
parent
3284f58e95
commit
ef3ee7d69c
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue