From 92e8dc5c92bcb133a1145d494600084b6c21979d 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: Mason James --- Koha/Item.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 630232bb17..89bb01a8d8 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -86,7 +86,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