From c41656ddaab017b472095630dc5af026f06d11ba Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 28 Feb 2023 16:40:00 +0100 Subject: [PATCH] Bug 32894: Koha::Biblio->biblioitem Can we do better here? Signed-off-by: Martin Renvoize --- Koha/Biblio.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index 0b0aae8c73..ea415ff56e 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -543,10 +543,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 -- 2.40.0