Bugzilla – Attachment 148547 Details for
Bug 33229
Patron reading history should be cleared when privacy set to never
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33229: Remove unecessary txn
Bug-33229-Remove-unecessary-txn.patch (text/plain), 1.10 KB, created by
Jonathan Druart
on 2023-03-22 13:35:40 UTC
(
hide
)
Description:
Bug 33229: Remove unecessary txn
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-03-22 13:35:40 UTC
Size:
1.10 KB
patch
obsolete
>From d350fd67233e8550e7fb183bd9c0b3d537875ad7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 22 Mar 2023 14:34:28 +0100 >Subject: [PATCH] Bug 33229: Remove unecessary txn > >We don't need a transaction here. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Patron.pm | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 3d54aae0098..e9bf916db78 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -302,10 +302,7 @@ sub store { > # their checkouts > if( $self->privacy() == 2 && $self_from_storage->privacy() != 2 ){ > try{ >- my $schema = Koha::Database->new()->schema(); >- $schema->txn_do( >- sub { $self->old_checkouts->anonymize; } >- ); >+ $self->old_checkouts->anonymize; > } > catch { > Koha::Exceptions::Patron::FailedAnonymizing->throw( >-- >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 33229
:
148186
|
148197
|
148546
| 148547 |
149753