Bugzilla – Attachment 150849 Details for
Bug 32894
Objects cache methods' result without invalidation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32894: Koha::Biblio->biblioitem
Bug-32894-KohaBiblio-biblioitem.patch (text/plain), 957 bytes, created by
Nick Clemens (kidclamp)
on 2023-05-09 11:51:08 UTC
(
hide
)
Description:
Bug 32894: Koha::Biblio->biblioitem
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-05-09 11:51:08 UTC
Size:
957 bytes
patch
obsolete
>From 5716d5e8ef57ed5247b210ad6bb43939ed924353 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <martin.renvoize@ptfs-europe.com> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > Koha/Biblio.pm | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 4de77416ac..07e3f35340 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -549,10 +549,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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32894
:
147499
|
147500
|
147502
|
147503
|
150016
|
150017
|
150018
|
150019
|
150020
|
150021
|
150827
|
150828
|
150847
|
150848
|
150849
|
150850
|
150851
|
150852
|
150853
|
150854
|
150855
|
152086
|
152087
|
152088
|
152089
|
152090
|
152091
|
152092
|
152093
|
152094