[Koha-bugs] [Bug 30318] New: Cannot override default patron messaging preferences when creating a patron in staff client
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Mar 18 16:41:14 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30318
Bug ID: 30318
Summary: Cannot override default patron messaging preferences
when creating a patron in staff client
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Patrons
Assignee: koha-bugs at lists.koha-community.org
Reporter: nick at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
The issue appears to be in C4/Form/MessagingPreferences.pm
73 sub handle_form_action {
...
104 if (! $prefs_set && $insert){
105 # this is new borrower, and we have no preferences set, use the
defaults
106 $target_params->{categorycode} = $categorycode;
107 C4::Members::Messaging::SetMessagingPreferencesFromDefaults(
$target_params );
108 }
...
To recreate:
1 - Enable EnhancedMessagingPreferences system preference
2 - Set some defaults for a category
3 - Create a new patron in this category
4 - Uncheck all messages before saving
5 - Note patron is created with the defaults set
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list