Bugzilla – Attachment 152088 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), 959 bytes, created by
Jonathan Druart
on 2023-06-07 10:04:02 UTC
(
hide
)
Description:
Bug 32894: Koha::Biblio->biblioitem
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-06-07 10:04:02 UTC
Size:
959 bytes
patch
obsolete
>From 8abf1c0b0b80bbc706f5d017f344687099ea2c40 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 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
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