Bugzilla – Attachment 106196 Details for
Bug 24152
Add the ability to purge pseudonymized data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24152: Allow purge with 0 day
Bug-24152-Allow-purge-with-0-day.patch (text/plain), 1.36 KB, created by
Jonathan Druart
on 2020-06-23 10:03:32 UTC
(
hide
)
Description:
Bug 24152: Allow purge with 0 day
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-06-23 10:03:32 UTC
Size:
1.36 KB
patch
obsolete
>From 426103b319f47b9b1dee6846da347c59c8acf816 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 23 Jun 2020 12:02:35 +0200 >Subject: [PATCH] Bug 24152: Allow purge with 0 day > >--- > misc/cronjobs/cleanup_database.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl >index 891366c70d..fc5db41da3 100755 >--- a/misc/cronjobs/cleanup_database.pl >+++ b/misc/cronjobs/cleanup_database.pl >@@ -463,9 +463,9 @@ if (defined $pPseudoTransactions or $pPseudoTransactionsFrom or $pPseudoTransact > Koha::PseudonymizedTransactions->filter_by_last_update( > { > timestamp_column_name => 'datetime', >- ( $pPseudoTransactions ? ( days => $pPseudoTransactions ) : () ), >- ( $pPseudoTransactionsFrom ? ( from => $pPseudoTransactionsFrom ) : () ), >- ( $pPseudoTransactionsTo ? ( to => $pPseudoTransactionsTo ) : () ), >+ ( defined $pPseudoTransactions ? ( days => $pPseudoTransactions ) : () ), >+ ( $pPseudoTransactionsFrom ? ( from => $pPseudoTransactionsFrom ) : () ), >+ ( $pPseudoTransactionsTo ? ( to => $pPseudoTransactionsTo ) : () ), > } > )->delete; > print "Done with purging pseudonymized transactions.\n" if $verbose; >-- >2.20.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 24152
:
95977
|
95978
|
95979
|
97253
|
97254
|
97255
|
101297
|
101298
|
101299
|
105817
|
105818
|
105819
|
106051
|
106052
|
106053
|
106054
| 106196