From ffd1141332b24d71d38162164bf55a4bb973550d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 2 Feb 2026 12:35:11 +0000 Subject: [PATCH] Bug 38769: (follow-up) Exclude consents from approve() method The approve() method in Koha::Patron::Modification is used for staff approval of patron profile updates. Since the 'consents' field is specific to self-registration and is handled separately in opac-registration-verify.pl, we need to explicitly delete it from the data hash to prevent any potential issues. This matches the pattern used for extended_attributes. --- Koha/Patron/Modification.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Patron/Modification.pm b/Koha/Patron/Modification.pm index fdf6603255a..b00482237cb 100644 --- a/Koha/Patron/Modification.pm +++ b/Koha/Patron/Modification.pm @@ -84,6 +84,7 @@ sub approve { delete $data->{timestamp}; delete $data->{verification_token}; delete $data->{extended_attributes}; + delete $data->{consents}; my $changed_fields = $data->{changed_fields}; delete $data->{changed_fields}; -- 2.52.0