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 <kyle@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2017-02-16 11:04:11 +00:00 committed by Kyle M Hall
parent c614342f27
commit 236dbdf5f1

View file

@ -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