From 6a9fafe3090333647244db99ccd39d53e51b781c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 7 Sep 2017 14:15:20 -0300 Subject: [PATCH] Bug 19214: prevent crash if club_template_field is called in list context Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart --- Koha/Club/Field.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Club/Field.pm b/Koha/Club/Field.pm index 6f92d83f31..56f5aa03e8 100644 --- a/Koha/Club/Field.pm +++ b/Koha/Club/Field.pm @@ -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 -- 2.39.5