From bc5f8472efe451dcb9a14f23289128c542e34497 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 16 Feb 2017 11:04:11 +0000 Subject: [PATCH] Bug 17974 (QA Followup) Use the $biblio_rs variable In case of Koha::Object you can call new_from_dbic directly, however, it fails for Koha::Objects so using an intermediary variable should be done for consistency --- Koha/Item.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index da3d11a..34bda38 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -88,7 +88,7 @@ Return the bibliographic record of this item sub biblio { my ( $self ) = @_; my $biblio_rs = $self->_result->biblio; - return Koha::Biblio->_new_from_dbic( $self->_result->biblio ); + return Koha::Biblio->_new_from_dbic( $biblio_rs ); } =head3 get_transfer -- 2.1.4