Bug 32894: Koha::Biblio->biblioitem

Can we do better here?

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 994132a60a)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2023-02-28 16:40:00 +01:00 committed by Martin Renvoize
parent 143c0e59c8
commit e91d18fcdd
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 4 deletions

View File

@ -579,10 +579,7 @@ Returns the related Koha::Biblioitem object for this Biblio object
sub biblioitem {
my ($self) = @_;
$self->{_biblioitem} ||= Koha::Biblioitems->find( { biblionumber => $self->biblionumber() } );
return $self->{_biblioitem};
return Koha::Biblioitems->find( { biblionumber => $self->biblionumber } );
}
=head3 suggestions