From 236dbdf5f1922f98305df8b4c3aee040c0086b05 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 Signed-off-by: Kyle M Hall --- Koha/Item.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index da3d11a3c8..34bda38970 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.39.5