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:
parent
631af0c405
commit
30475943d7
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue