From 05e8e7b115b0f4752fae47daa78472e1e2cf1526 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 3 Mar 2025 15:38:32 -0100 Subject: [PATCH] Bug 37901: Preparation: Update borrower attribute types logic This now conforms to the new pseudonymized_metadata_values instead of pseudonymized_borrower_attributes --- Koha/PseudonymizedTransaction.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/PseudonymizedTransaction.pm b/Koha/PseudonymizedTransaction.pm index ee243d76e67..845505143ca 100644 --- a/Koha/PseudonymizedTransaction.pm +++ b/Koha/PseudonymizedTransaction.pm @@ -103,8 +103,11 @@ sub new_from_statistic { delete $attribute->{id}; delete $attribute->{borrowernumber}; + $attribute->{key} = delete $attribute->{code}; + $attribute->{value} = delete $attribute->{attribute}; + $attribute->{tablename} = 'borrower_attributes'; - $self->_result->create_related( 'pseudonymized_borrower_attributes', $attribute ); + $self->_result->create_related( 'pseudonymized_metadata_values', $attribute ); } } -- 2.39.5