]> git.koha-community.org Git - koha.git/commit
bug 3222: set messaging preferences during patron import
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 20 May 2009 16:35:54 +0000 (11:35 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 22 May 2009 18:20:53 +0000 (13:20 -0500)
commit8e5eea5c4e1a8fa500a6912b2d9d9ddff92bad70
treed7eaf546a6b5bf79e1d3e97f7bfba16497ca881a
parenta1200e64981322e05ace740421182846098b2711
bug 3222: set messaging preferences during patron import

If the EnhancedMessagingPreferences option is ON, when
creating a new patron record via the patron import, set
the default messaging preferences to the applicable values
the default preferences for the patron category.

Messaging preferences are currently changed only when
*adding* a patron record via the import; if the import
updates an existing record, the patron's existing
preferences are not changed.

API changes:

SetMessagingPreferencesFromDefaults() is a new function
in C4::Members::Messaging to unconditionally replace
the current messaging preferences of a patron with the
default preferences from a specified patron category.

Signed-off-by: Daniel Sweeney <daniel.sweeney@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Members/Messaging.pm
tools/import_borrowers.pl