From 0f30e7a0b59c3009d8aa86637947252964817e22 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 --- Koha/Subscription.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Subscription.pm b/Koha/Subscription.pm index 0398763..2a793e5 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.1.4