Bugzilla – Attachment 192314 Details for
Bug 38769
Add plugins consent types to OPAC self registration process
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38769: (follow-up) Exclude consents from approve() method
ffd1141.patch (text/plain), 1.11 KB, created by
Martin Renvoize (ashimema)
on 2026-02-02 12:37:36 UTC
(
hide
)
Description:
Bug 38769: (follow-up) Exclude consents from approve() method
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2026-02-02 12:37:36 UTC
Size:
1.11 KB
patch
obsolete
>From ffd1141332b24d71d38162164bf55a4bb973550d Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@openfifth.co.uk> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38769
:
175882
|
175883
|
192311
|
192312
|
192313
| 192314