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>
(cherry picked from commit 6a9fafe309)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2017-09-07 14:15:20 -03:00 committed by Fridolin Somers
parent 68bbe3fb0d
commit 960015819e
1 changed files with 1 additions and 1 deletions

View File

@ -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