From 972d6c946a193d070b56efafe0f4e3251e0dbd84 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 9 Aug 2017 11:30:00 +0200 Subject: [PATCH] Bug 18785: Force scalar context in Koha::Subscription::biblio Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- Koha/Subscription.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Subscription.pm b/Koha/Subscription.pm index 0398763787..2a793e5946 100644 --- a/Koha/Subscription.pm +++ b/Koha/Subscription.pm @@ -45,7 +45,7 @@ Returns the biblio linked to this subscription as a Koha::Biblio object sub biblio { my ($self) = @_; - return Koha::Biblios->find($self->biblionumber); + return scalar Koha::Biblios->find($self->biblionumber); } =head3 type -- 2.39.5