[Koha-bugs] [Bug 18595] Move C4::Members::Messaging to Koha namespace

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 16 08:56:19 CEST 2020


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

Emmi Takkinen <emmi.takkinen at outlook.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #103446|0                           |1
        is obsolete|                            |

--- Comment #89 from Emmi Takkinen <emmi.takkinen at outlook.com> ---
Created attachment 110153
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110153&action=edit
Bug 18595: Move C4::Members::Messaging::SetMessagingPreferencesFromDefaults

This patch moves C4::Members::SetMessagingPreferencesFromDefaults to
Koha::Patron->set_default_messaging_preferences

The patch makes a heavy touch on core messaging preference features,
but should not introduce any visible changes for end user. Keep this in mind
if testing. If you notice any changes in Koha, something is probably wrong!

To test:

Make sure you have enabled the following system preferences:
- EnhancedMessagingPreferences

---- GENERAL ----
1. Apply patch
2. Search Koha source code for references of
"SetMessagingPreferencesFromDefaults"
       (grep -r 'SetMessagingPreferencesFromDefaults').
3. Observe no results in source code.

---- INTRANET ----
1. Login to intranet.
2. Go to Administration -> Patron categories -> Edit (for any category)
3. Scroll down to observe default messaging preferences for this patron
category
4. Observe the preferences, remember them for the next step.
5. Go to cgi-bin/koha/members/memberentry.pl?op=add&categorycode=XXX, replace
XXX
    with the categorycode you were just editing.
6. Look at messaging preferences. They should be same as in step 4.
7. Fill in required data, do not modify messaging preferences, click Save.
8. Observe a new patron with default messaging preferences.

Signed-off-by: Marc VĂ©ron <veron at veron.ch>

Signed-off-by: David Bourgault <david.bourgault at inlibro.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list