]> git.koha-community.org Git - koha.git/commit
Bug 37339: Set messaging preferences from default on self registration
authorNick Clemens <nick@bywatersolutions.com>
Fri, 12 Jul 2024 14:00:49 +0000 (14:00 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 21 Oct 2024 13:35:16 +0000 (15:35 +0200)
commit7d8d06508ec77ad7ba9054afb78801e3ae3d210f
treeff4a04d19882548c9e4d1ee329f46a12233f13ef
parentf0fb229f80b1261b534d481aefd8750b5973e768
Bug 37339: Set messaging preferences from default on self registration

The change on bug 30318 prevented setting the default messaging preferences when none were passed.
Self registration relied on this for setting borrower preferences from the defaults.

This patch removes the call to handle_form_action and replaces it with a call to:
SetMessagingPreferencesFromDefault

To test:
 1 - Ensure self registration is enabled
 2 - Set default messaging preferences for the self registration category
 3 - Self register a patron from the OPAC, confirm defaults not set
 4 - Apply patch, restart all
 5 - Self register a patron
 6 - Confirm defaults have been set
 7 - Enable  PatronSelfRegistrationVerifyByEmail
 8 - Self register a patron on OPAC with an email
 9 - Find the email and grab the verification link (unless you have emails enabled)
     SELECT * FROM message_queue;
10 - Visit the link and confirm registration
11 - Confirm messaging defaults are set

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2accac5fd9a210c9aa0107c47522c7393b257c8c)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1d72bfe3d2ce95da35b966960efb2c73679226c2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-memberentry.pl
opac/opac-registration-verify.pl