From 8abf1c0b0b80bbc706f5d017f344687099ea2c40 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 Signed-off-by: Nick Clemens --- Koha/Biblio.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index 5844c537af6..f8d6fcdff44 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -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 -- 2.25.1