From 82047f4acc809e00b09fc025f3ba71c0aa2be6a8 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 31 Oct 2019 10:45:41 +0000 Subject: [PATCH] Bug 23916: Anonymise 'issuer' when required This patch adds the anonymisation of 'old_issues.issuer' alongside the existing anonymisation of 'old_issues.borrowernumber' --- Koha/Patrons.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Patrons.pm b/Koha/Patrons.pm index fbe696ec7a..49f785913f 100644 --- a/Koha/Patrons.pm +++ b/Koha/Patrons.pm @@ -195,7 +195,10 @@ sub anonymise_issue_history { } ); my $anonymous_patron = C4::Context->preference('AnonymousPatron') || undef; - $nb_rows += $old_issues_to_anonymise->update( { 'old_issues.borrowernumber' => $anonymous_patron } ); + $nb_rows += $old_issues_to_anonymise->update( { + 'old_issues.borrowernumber' => $anonymous_patron, + 'old_issues.issuer' => $anonymous_patron + } ); } return $nb_rows; } -- 2.11.0