Bug 33607: Handle default framework

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-05-09 12:04:33 +02:00 committed by Tomas Cohen Arazi
parent 631af0c405
commit 30475943d7
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -23,6 +23,7 @@ use Template::Plugin;
use base qw( Template::Plugin );
use Koha::BiblioFrameworks;
use Koha::I18N qw( __ );
=head1 NAME
@ -47,7 +48,7 @@ is not found
sub GetName {
my ( $self, $frameworkcode ) = @_;
return q{} unless defined $frameworkcode;
return q{} if $frameworkcode eq q{};
return __("Default") if $frameworkcode eq q{};
my $f = Koha::BiblioFrameworks->find($frameworkcode);