https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38769

--- Comment #6 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 192313
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192313&action=edit
Bug 38769: Process consents on patron self-registration

This patch adds support for plugin consent types to self-registration:

- Add proper display of plugin consents with consent_[type] naming
- Only show plugin consents for new registrations (not edit mode)

Backend changes (opac-memberentry.pl):
- Add ParsePluginConsents() to extract consent checkbox values
- Save plugin consents when creating patron directly
- Store consents as JSON for email verification workflow

Email verification (opac-registration-verify.pl):
- Process stored plugin consents after email verification
- Create Koha::Patron::Consent records for each agreed consent

Test plan:
1. Enable a plugin that provides patron_consent_type hook
2. Go to OPAC self-registration page
3. Verify plugin consents are displayed
4. Submit registration with/without email verification
5. Verify consents are saved to patron_consents table

-- 
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/

Reply via email to