[Koha-bugs] [Bug 14590] Checkboxes should be disabled without valid contact information in messaging preferences

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 10 15:22:12 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14590

Lari Taskula <larit at student.uef.fi> changed:

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

--- Comment #13 from Lari Taskula <larit at student.uef.fi> ---
Created attachment 44704
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44704&action=edit
Bug 14590 - Checkboxes should be disabled without valid contact information in
messaging preferences

This patch makes both client and server side validations, both in OPAC and
Staff client.

Test plan for Staff client:
1. Login to Staff client
2. Enable syspref ValidateEmailAddress and set ValidatePhoneNumber to "ipn"
3. Enable syspref TalkingTechItivaPhoneNotification and SMSSendDriver (write
anything), and allow syspref EnhancedMessagingPreferences
4. Navigate to modify patron's information at memberentry.pl
5. Insert valid primary phone number, primary email address and SMS number
6. Check all messaging preferences and submit changes
7. Navigate to modify patron's information at memberentry.pl
8. Clear primary email, primary phone and SMS number fields and submit changes
9. Observe that the messaging preferences are disabled

Test plan for OPAC:
-1. Make sure sysprefs are set like in Staff client test step 2-3
1. Login to OPAC
2. Navigate to "your personal details"
3. Insert valid primary phone number, primary email address and SMS number
4. Submit changes
5. Login to Staff client
5.1. Navigate to Patrons
5.2. Approve information modification request
6. Back in OPAC, Navigate to "your messaging"
7. Check all messaging preferences and submit changes
8. Navigate to "your personal details"
9. Clear primary email, primary phone and submit changes
10. Repeat step 5 and 6
11. Observe that the messaging preferences are disabled for "Phone" and "Email"
columns
12. Clear SMS number field and submit changes
13. Observe that all the messaging preferences are disabled

This patch also includes a maintenance script at
misc/maintenance/deleteMisconfiguredMessagingPrefs.pl that goes through all
borrowers
and automatically deletes their misconfigured messaging preferences.

Fixing category messaging preferences broken by previous patch.

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


More information about the Koha-bugs mailing list