https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39322
David Nind <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #179240|0 |1 is obsolete| | --- Comment #5 from David Nind <[email protected]> --- Created attachment 180109 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180109&action=edit Bug 39322: Don't fetch borrower attributes if none kept for pseudonymization This patch simply checks the count of pseudonymized borrower attributes before looping through them To test: 1 - Define several borrower attributes, none kept for pseudonymization 2 - Add some values for those attributes to some patrons 3 - Generate some statistics for those patrons (checkin, checkout, renew, etc) 4 - Enable pseudonymization 5 - On command line: export DBIC_TRACE=1 6 - Run the pseudonymization script with a date in the future to ensure all transactions are captured: perl misc/maintenance/pseudonymize_statistics.pl -v -c --before 2026-01-01 7 - Note the borrower attributes are fetched 8 - Apply patch 9 - repeat 6 10 - Note the attributes are only counted, not fetched 11 - Make one of the attributes kept 12 - repeat 6 13 - Note the attributes are counted and fetched Signed-off-by: David Nind <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
