@@ -, +, @@ # Failed test 'no lang passed, default is returned' # at t/db_dependent/Koha/Notices.t line 105. # got: 'es-ES' # expected: 'default' # Looks like you failed 1 test of 7. --- Koha/Notice/Templates.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/Koha/Notice/Templates.pm +++ a/Koha/Notice/Templates.pm @@ -59,7 +59,9 @@ sub find_effective_template { my ( $self, $params ) = @_; $params = { %$params }; # don't modify original - $params->{lang} = 'default' unless C4::Context->preference('TranslateNotices'); + + $params->{lang} = 'default' + unless C4::Context->preference('TranslateNotices') && $params->{lang}; my $only_my_library = C4::Context->only_my_library; if ( $only_my_library and $params->{branchcode} ) { --