Bug 9556: fix setting messaging prefs when changing patron category
authorGalen Charlton <gmc@esilibrary.com>
Wed, 6 Feb 2013 16:02:18 +0000 (08:02 -0800)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 7 Feb 2013 13:37:17 +0000 (08:37 -0500)
commit9912e384043df1224a5a1735a8f3fec3caddd8fc
treea034c2333f252d1053c45aad1b1ca6fa12c2a822
parent375873d22108ee3c2447bad44f929c1f7aac1810
Bug 9556: fix setting messaging prefs when changing patron category

As a result of accumulated changes to field names returned
by the members/default_messageprefs.pl service, the JavaScript
to change the patron messaging preferences to the category default
when changing a patron's category in the patron editor stopped
working.

To test:

[1] Turn on the EnhancedMessagingPreferences feature.
[2] Set message preference defaults for at least two
    patron categories.
[3] Before applying the patch, create a new patron record
    using one of the categories you set prefs for, then
    change the category, then change it back again.  You
    will see that numeric settings like the number of days
    for advanced notices will change, but checkboxes won't change.
[4] Apply the patch, then create a new patron record and
    try changing the patron category.  You will see that all of
    the preferences will get updated to the category default
    each time you change the category.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt