Bug 34776 - Patron messaging preferences are lost when an error occurs during new account creation
Summary: Patron messaging preferences are lost when an error occurs during new account...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-12 21:01 UTC by Aleisha Amohia
Modified: 2024-03-20 10:04 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleisha Amohia 2023-09-12 21:01:36 UTC
To reproduce:

1. Create a new account but cause an error that will keep the account from saving (enter the wrong age for a category or give the patron a username that's already being used)
2. Set some patron messaging preferences
3. Try to save the account and wait for the "The following fields are wrong. Please fix them." message
4. Note that the patron messaging preference selections are gone and you need to re-select them

Note, this depends on the EnhancedMessagingPreferences system preference to be enabled

This is similar to Bug 26558
Comment 1 Emmi Takkinen 2024-03-20 07:34:01 UTC
This also happens when patron is duplicate (see bug 25228). It seems that when error occurs, default messaging preferences for patron category are used.
Comment 2 Emmi Takkinen 2024-03-20 10:04:48 UTC
I ran into another problem while looking into this, see bug 36368.