From 994132a60a2e4a12eb88cc8b9d1a89f28450a7bf 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 5844c537af..f8d6fcdff4 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.20.1