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 <B.T.Veasey@lboro.ac.uk> Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
eb283d13fa
commit
e7587f6c8b
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue