Koha-clms/opac
Nick Clemens 7d8d06508e 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 2accac5fd9)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1d72bfe3d2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-10-21 15:35:16 +02:00
..
clubs Bug 35941: (QA follow-up) Tidy clubs-tab.pl 2024-02-19 14:41:11 +01:00
errors
…
external/overdrive
…
sci
…
sco Bug 36679: Prevent SCO login for the AnonymousPatron 2024-07-17 15:41:06 +02:00
svc Bug 35942: OPAC user can enroll several times to the same club 2024-02-19 14:41:11 +01:00
ilsdi.pl
…
maintenance.pl Bug 23798: Convert OpacMaintenanceNotice system preference to additional contents 2023-11-08 17:41:27 -03:00
oai.pl
…
opac-ISBDdetail.pl Bug 35961: (follow-up) Pass along the borrowernumber 2024-05-29 15:04:20 +02:00
opac-MARCdetail.pl Bug 35961: (follow-up) Pass along the borrowernumber 2024-05-29 15:04:20 +02:00
opac-account-pay-return.pl
…
opac-account-pay.pl Bug 36088: Remove useless code form opac-account-pay.pl 2024-03-11 10:29:19 +01:00
opac-account.pl
…
opac-addbybiblionumber.pl
…
opac-alert-subscribe.pl
…
opac-alert-subscriptions.pl
…
opac-article-request-cancel.pl
…
opac-authorities-home.pl Bug 35578: Simplify the code using intersect 2024-02-01 15:50:38 +01:00
opac-authoritiesdetail.pl
…
opac-basket.pl
…
opac-blocked.pl Bug 35952: Remove unnecessary line for OpacSuppressionMessage 2024-03-11 10:40:31 +01:00
opac-browse.pl
…
opac-browser.pl
…
opac-changelanguage.pl
…
opac-course-details.pl
…
opac-course-reserves.pl
…
opac-curbside-pickups.pl
…
opac-detail.pl Bug 34886: Adjust other opac detail scripts 2024-04-17 17:10:07 +02:00
opac-discharge.pl
…
opac-dismiss-message.pl Bug 36532: Protect opac-dismiss-message.pl from malicious usages 2024-04-24 07:36:20 +02:00
opac-downloadcart.pl
…
opac-downloadshelf.pl
…
opac-export.pl Bug 37370: Return 400 if OpacExportOptions does not contain the passed format 2024-08-13 02:03:21 -03:00
opac-holdshistory.pl
…
opac-ics.pl
…
opac-idref.pl
…
opac-illrequests.pl Bug 35685: Fix after creation actions 2024-05-23 11:37:58 +02:00
opac-image.pl
…
opac-imageviewer.pl
…
opac-issue-note.pl
…
opac-library.pl
…
opac-main.pl
…
opac-memberentry.pl Bug 37339: Set messaging preferences from default on self registration 2024-10-21 15:35:16 +02:00
opac-messaging.pl
…
opac-modrequest-suspend.pl Bug 35492: Open holds tab by default on opac-user.pl after suspending a hold 2024-01-03 15:09:10 +01:00
opac-modrequest.pl Bug 35495: Open holds tab by default on opac-user.pl after cancelling a hold 2024-01-03 15:09:49 +01:00
opac-mymessages.pl
…
opac-news-rss.pl
…
opac-overdrive-search.pl
…
opac-page.pl Bug 36875: Do not pass unsanitized language to $page->translated_content 2024-06-06 10:59:48 +02:00
opac-passwd.pl
…
opac-password-recovery.pl Bug 21431: Add action parameter to set_password 2023-11-09 14:50:11 -03:00
opac-patron-consent.pl Bug 31503: Make opac-patron-consent more generic 2023-10-25 10:35:20 -03:00
opac-patron-image.pl
…
opac-privacy.pl
…
opac-ratings.pl
…
opac-readingrecord.pl
…
opac-recall.pl Bug 36142: recallsview template param for opac-recall.tt 2024-05-23 13:56:54 +02:00
opac-recalls.pl
…
opac-registration-verify.pl Bug 37339: Set messaging preferences from default on self registration 2024-10-21 15:35:16 +02:00
opac-renew.pl
…
opac-reportproblem.pl
…
opac-request-article.pl Bug 36072: opac-request-article should check syspref 2024-02-19 14:41:11 +01:00
opac-reserve.pl Bug 35977: (follow-up) Cleaner working approach 2024-05-23 17:28:56 +02:00
opac-reset-password.pl
…
opac-restrictedpage.pl
…
opac-retrieve-file.pl
…
opac-review.pl Bug 13342: Not logged user can place a review/comment 2024-10-01 15:09:11 +02:00
opac-routing-lists.pl
…
opac-search-history.pl
…
opac-search.pl Bug 35558: Do not retrieve the local image if none exists - OPAC 2024-05-24 10:00:43 +02:00
opac-sendbasket.pl Bug 36520: Sanitize input in opac-sendbasket.pl 2024-06-06 10:59:48 +02:00
opac-sendshelf.pl
…
opac-serial-issues.pl
…
opac-shareshelf.pl
…
opac-shelves.pl Bug 36858: Remove warnings 2024-05-29 16:12:13 +02:00
opac-showmarc.pl
…
opac-showreviews.pl
…
opac-suggestions.pl
…
opac-tags.pl Bug 36785: Typo unreconized and bilbio in tags code 2024-05-29 15:12:56 +02:00
opac-tags_subject.pl
…
opac-topissues.pl
…
opac-user.pl Bug 35496: (QA follow-up): tidy up code 2024-01-03 15:10:21 +01:00
tracklinks.pl
…
unapi
…