Bug 19214: prevent crash if club_template_field is called in list context
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
594c48fb5b
commit
6a9fafe309
|
|
@ -46,7 +46,7 @@ Represents the value set at creation time for a Koha::Club::Template::Field
|
|||
sub club_template_field {
|
||||
my ( $self ) = @_;
|
||||
|
||||
return Koha::Club::Template::Fields->find( $self->club_template_field_id );
|
||||
return scalar Koha::Club::Template::Fields->find( $self->club_template_field_id );
|
||||
}
|
||||
|
||||
=head3 type
|
||||
|
|
|
|||
Loading…
Reference in New Issue