From 564ee75b1dd0714d6c2e427e58b41ba303944d1a 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' Signed-off-by: Ben Veasey Signed-off-by: Bouzid Fergani --- Koha/Patrons.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Patrons.pm b/Koha/Patrons.pm index f4ca845..136b73e 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.7.4