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:
parent
68bbe3fb0d
commit
960015819e
|
|
@ -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