View | Details | Raw Unified | Return to bug 40020
Collapse All | Expand All

(-)a/Koha/AdditionalContents.pm (-1 / +1 lines)
Lines 73-79 location is one of this: Link Here
73
73
74
sub search_for_display {
74
sub search_for_display {
75
    my ( $self, $params ) = @_;
75
    my ( $self, $params ) = @_;
76
    my $lang = $params->{lang};
76
    my $lang = $params->{lang} || q{};
77
77
78
    # If lang is not default, we will search for entries matching $lang but fallback to default if $lang is not found
78
    # If lang is not default, we will search for entries matching $lang but fallback to default if $lang is not found
79
    # Then we need a subquery count in where clause; DBIx::Class/SQL::Abstract does not support it, fallback to literal SQL
79
    # Then we need a subquery count in where clause; DBIx::Class/SQL::Abstract does not support it, fallback to literal SQL
(-)a/t/db_dependent/Koha/AdditionalContents.t (-2 / +2 lines)
Lines 19-26 Link Here
19
19
20
use Modern::Perl;
20
use Modern::Perl;
21
21
22
use Test::More tests => 7;
22
use Test::More tests => 8;
23
use Test::Exception;
23
use Test::Exception;
24
use Test::NoWarnings;
24
25
25
use Koha::AdditionalContents;
26
use Koha::AdditionalContents;
26
use Koha::Database;
27
use Koha::Database;
27
- 

Return to bug 40020