Bug 18785: Force scalar context in Koha::Subscription::biblio
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 9 Aug 2017 09:30:00 +0000 (11:30 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 9 Oct 2017 19:15:50 +0000 (16:15 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Subscription.pm

index 0398763..2a793e5 100644 (file)
@@ -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